Author: arunpatidar
Date: Tue Jun 28 14:52:01 2016
New Revision: 1750530
URL:
http://svn.apache.org/viewvc?rev=1750530&view=revLog:
Applied patch from jira issue - OFBIZ-7448 - Enforce noninstantiability to InventoryWorker Class. Thanks Rishi Solanki and Aman Mishra for your contribution.
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryWorker.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryWorker.java?rev=1750530&r1=1750529&r2=1750530&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryWorker.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryWorker.java Tue Jun 28 14:52:01 2016
@@ -37,10 +37,12 @@ import org.ofbiz.entity.condition.Entity
import org.ofbiz.entity.condition.EntityOperator;
import org.ofbiz.entity.util.EntityQuery;
-public class InventoryWorker {
+public final class InventoryWorker {
public final static String module = InventoryWorker.class.getName();
+ private InventoryWorker () {}
+
/**
* Finds all outstanding Purchase orders for a productId. The orders and the items cannot be completed, cancelled, or rejected
* @param productId the product id