IDEMPIERE-455 Discover and fix FindBugs problems / Pattern LI_LAZY_INIT_UPDATE_STATIC
This commit is contained in:
parent
c39cc3b81d
commit
47dde2cfe9
|
@ -51,7 +51,7 @@ public class MEntityType extends X_AD_EntityType
|
||||||
* @param ctx context
|
* @param ctx context
|
||||||
* @return entity type array
|
* @return entity type array
|
||||||
*/
|
*/
|
||||||
static public MEntityType[] getEntityTypes(Properties ctx)
|
static synchronized public MEntityType[] getEntityTypes(Properties ctx)
|
||||||
{
|
{
|
||||||
if (s_entityTypes != null)
|
if (s_entityTypes != null)
|
||||||
return s_entityTypes;
|
return s_entityTypes;
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class AdempiereServerMgr
|
||||||
* Get Adempiere Server Manager
|
* Get Adempiere Server Manager
|
||||||
* @return mgr
|
* @return mgr
|
||||||
*/
|
*/
|
||||||
public static AdempiereServerMgr get()
|
public synchronized static AdempiereServerMgr get()
|
||||||
{
|
{
|
||||||
if (m_serverMgr == null)
|
if (m_serverMgr == null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue