Author: arunpatidar
Date: Mon Jul 4 16:21:51 2016
New Revision: 1751332
URL:
http://svn.apache.org/viewvc?rev=1751332&view=revLog:
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");