Author: arunpatidar
Date: Wed Jun 29 15:16:20 2016
New Revision: 1750662
URL:
http://svn.apache.org/viewvc?rev=1750662&view=revLog:
Applied patch from jira issue - OFBIZ-7479 - Enforce noninstantiability to BshUtil class. Thanks Rishi Solanki and Rahul Singh for your contribution.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/BshUtil.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/BshUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/BshUtil.java?rev=1750662&r1=1750661&r2=1750662&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/BshUtil.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/BshUtil.java Wed Jun 29 15:16:20 2016
@@ -44,9 +44,11 @@ public final class BshUtil {
public static final String module = BshUtil.class.getName();
- protected static ConcurrentHashMap<ClassLoader, BshClassManager> masterClassManagers = new ConcurrentHashMap<ClassLoader, BshClassManager>();
+ private static ConcurrentHashMap<ClassLoader, BshClassManager> masterClassManagers = new ConcurrentHashMap<ClassLoader, BshClassManager>();
private static final UtilCache<String, Interpreter.ParsedScript> parsedScripts = UtilCache.createUtilCache("script.BshLocationParsedCache", 0, 0, false);
+ private BshUtil() {}
+
/**
* Evaluate a BSH condition or expression
* @param expression The expression to evaluate