Author: arunpatidar
Date: Wed Jun 29 15:11:54 2016
New Revision: 1750661
URL:
http://svn.apache.org/viewvc?rev=1750661&view=revLog:
Applied patch from jira issue - OFBIZ-7474 - Enforce noninstantiability to ServiceMcaUtil class. Thanks Rishi Solanki and Rohit Koushal for your contribution.
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/mail/ServiceMcaUtil.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/mail/ServiceMcaUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/mail/ServiceMcaUtil.java?rev=1750661&r1=1750660&r2=1750661&view=diff==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/mail/ServiceMcaUtil.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/mail/ServiceMcaUtil.java Wed Jun 29 15:11:54 2016
@@ -33,11 +33,13 @@ import org.ofbiz.service.GenericServiceE
import org.ofbiz.service.LocalDispatcher;
import org.w3c.dom.Element;
-public class ServiceMcaUtil {
+public final class ServiceMcaUtil {
public static final String module = ServiceMcaUtil.class.getName();
private static final UtilCache<String, ServiceMcaRule> mcaCache = UtilCache.createUtilCache("service.ServiceMCAs", 0, 0, false);
+ private ServiceMcaUtil() {}
+
public static void reloadConfig() {
mcaCache.clear();
readConfig();