Author: arunpatidar
Date: Thu Jun 23 14:20:33 2016
New Revision: 1749896
URL:
http://svn.apache.org/viewvc?rev=1749896&view=revLog:
Applied patch from jira issue - OFBIZ-7383 - Enforce noninstantiability to ContentManagementWorker Class. Thanks Rishi Solanki and Anurag Chandak for your contribution.
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java?rev=1749896&r1=1749895&r2=1749896&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/ContentManagementWorker.java Thu Jun 23 14:20:33 2016
@@ -57,11 +57,13 @@ import org.ofbiz.security.Security;
/**
* ContentManagementWorker Class
*/
-public class ContentManagementWorker {
+public final class ContentManagementWorker {
public static final String module = ContentManagementWorker.class.getName();
- public static Map<String, GenericValue> cachedWebSitePublishPoints = new HashMap<String, GenericValue>();
- public static Map<String, Map<String, Object>> cachedStaticValues = new HashMap<String, Map<String,Object>>();
+ private static Map<String, GenericValue> cachedWebSitePublishPoints = new HashMap<String, GenericValue>();
+ private static Map<String, Map<String, Object>> cachedStaticValues = new HashMap<String, Map<String,Object>>();
+
+ private ContentManagementWorker() {}
public static void mruAdd(HttpServletRequest request, GenericEntity pk, String suffix) {
HttpSession session = request.getSession();