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/07/04 16:21:51 UTC

svn commit: r1751332 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/status/StatusWorker.java

Author: arunpatidar
Date: Mon Jul  4 16:21:51 2016
New Revision: 1751332

URL: http://svn.apache.org/viewvc?rev=1751332&view=rev
Log:
Applied patch from jira issue - OFBIZ-7688 - Enforce noninstantiability to StatusWorker class. Thanks Chinmay Patidar and Rishi Solanki for your contribution.

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/status/StatusWorker.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/status/StatusWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/status/StatusWorker.java?rev=1751332&r1=1751331&r2=1751332&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/status/StatusWorker.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/status/StatusWorker.java Mon Jul  4 16:21:51 2016
@@ -32,10 +32,12 @@ import org.ofbiz.entity.util.EntityQuery
 /**
  * StatusWorker
  */
-public class StatusWorker {
+public final class StatusWorker {
 
     public static final String module = StatusWorker.class.getName();
 
+    private StatusWorker() {}
+
     public static void getStatusItems(PageContext pageContext, String attributeName, String statusTypeId) {
         Delegator delegator = (Delegator) pageContext.getRequest().getAttribute("delegator");