You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2016/06/27 13:12:12 UTC

svn commit: r1750329 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/layout/LayoutWorker.java

Author: arunpatidar
Date: Mon Jun 27 13:12:12 2016
New Revision: 1750329

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

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/layout/LayoutWorker.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/layout/LayoutWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/layout/LayoutWorker.java?rev=1750329&r1=1750328&r2=1750329&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/layout/LayoutWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/layout/LayoutWorker.java Mon Jun 27 13:12:12 2016
@@ -40,10 +40,12 @@ import org.ofbiz.service.ServiceUtil;
 /**
  * LayoutWorker Class
  */
-public class LayoutWorker {
+public final class LayoutWorker {
 
     public static final String module = LayoutWorker.class.getName();
-    public static final String err_resource = "ContentErrorUiLabels";
+    private static final String err_resource = "ContentErrorUiLabels";
+
+    private LayoutWorker() {}
 
     /**
      * Uploads image data from a form and stores it in ImageDataResource.