diff --git a/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/util/SimpleLoggerManager.java b/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/util/SimpleLoggerManager.java index ec70a57045f..0c010d2fb3d 100644 --- a/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/util/SimpleLoggerManager.java +++ b/sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/util/SimpleLoggerManager.java @@ -58,14 +58,15 @@ import java.util.*; import java.io.IOException; /** - * this singleton manages all loggers. It can be used to flush all SimpleLoggers - * at once + * This singleton manages all loggers. It can be used to flush all SimpleLoggers + * at once. + * @version $Id$ */ public class SimpleLoggerManager { - static SimpleLoggerManager instance = null; + private static SimpleLoggerManager instance = null; - ArrayList logs; + private ArrayList logs; private SimpleLoggerManager() { @@ -93,18 +94,18 @@ public class SimpleLoggerManager ex = e; } } - if(ex != null) + if (ex != null) { throw ex; } } - public static SimpleLoggerManager getInstance() + public synchronized static SimpleLoggerManager getInstance() { - if(instance == null) + if (instance == null) { instance = new SimpleLoggerManager(); } return instance; } -} \ No newline at end of file +}