diff --git a/base/src/org/compiere/util/CLogFilter.java b/base/src/org/compiere/util/CLogFilter.java index 092f4a5474..3ed1e5c538 100644 --- a/base/src/org/compiere/util/CLogFilter.java +++ b/base/src/org/compiere/util/CLogFilter.java @@ -33,7 +33,7 @@ public class CLogFilter implements Filter * Get Filter * @return singleton */ - public static CLogFilter get() + public static synchronized CLogFilter get() { if (s_filter == null) s_filter = new CLogFilter(); diff --git a/base/src/org/compiere/util/CLogFormatter.java b/base/src/org/compiere/util/CLogFormatter.java index c3b5755e84..2810f0eee1 100644 --- a/base/src/org/compiere/util/CLogFormatter.java +++ b/base/src/org/compiere/util/CLogFormatter.java @@ -38,7 +38,7 @@ public class CLogFormatter extends Formatter * Get Formatter * @return singleton */ - public static CLogFormatter get() + public static synchronized CLogFormatter get() { if (s_formatter == null) s_formatter = new CLogFormatter(); diff --git a/base/src/org/compiere/util/CacheMgt.java b/base/src/org/compiere/util/CacheMgt.java index 719852b454..7e48f6c300 100644 --- a/base/src/org/compiere/util/CacheMgt.java +++ b/base/src/org/compiere/util/CacheMgt.java @@ -19,7 +19,7 @@ package org.compiere.util; import java.util.ArrayList; /** - * Adempiere Cache Manangement + * Adempiere Cache Management * * @author Jorg Janke * @version $Id: CacheMgt.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $ @@ -28,9 +28,9 @@ public class CacheMgt { /** * Get Cache Management - * @return Cache Mgr + * @return Cache Manager */ - public static CacheMgt get() + public static synchronized CacheMgt get() { if (s_cache == null) s_cache = new CacheMgt(); diff --git a/base/src/org/compiere/util/Msg.java b/base/src/org/compiere/util/Msg.java index 8913d81d32..826ec5c514 100644 --- a/base/src/org/compiere/util/Msg.java +++ b/base/src/org/compiere/util/Msg.java @@ -48,9 +48,9 @@ public final class Msg /** * Get Message Object - * @return Mag + * @return Msg */ - private static Msg get() + private static synchronized Msg get() { if (s_msg == null) s_msg = new Msg();