svn commit: r1750513 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/portal/WidgetPortalPageWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1750513 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/portal/WidgetPortalPageWorker.java

Arun Patidar-4
Author: arunpatidar
Date: Tue Jun 28 14:02:14 2016
New Revision: 1750513

URL: http://svn.apache.org/viewvc?rev=1750513&view=rev
Log:
Applied patch from jira issue - OFBIZ-7420 - Enforce noninstantiability to WidgetPortalPageWorker Class. Thanks Rishi Solanki and Rahul Singh Kushwah for your contribution.

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/portal/WidgetPortalPageWorker.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/portal/WidgetPortalPageWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/portal/WidgetPortalPageWorker.java?rev=1750513&r1=1750512&r2=1750513&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/portal/WidgetPortalPageWorker.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/portal/WidgetPortalPageWorker.java Tue Jun 28 14:02:14 2016
@@ -23,9 +23,12 @@ import org.ofbiz.base.util.Debug;
 /**
  * PortalPageWorker Class
  */
-public class WidgetPortalPageWorker {
+public final class WidgetPortalPageWorker {
     public static final String module = WidgetPortalPageWorker.class.getName();
-    public static PortalPageWorkerInterface portalPageWorker = null;
+    private static PortalPageWorkerInterface portalPageWorker = null;
+
+    private WidgetPortalPageWorker() {}
+
     static {
         try {
             ClassLoader loader = Thread.currentThread().getContextClassLoader();