svn commit: r1750530 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryWorker.java

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

svn commit: r1750530 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryWorker.java

Arun Patidar-4
Author: arunpatidar
Date: Tue Jun 28 14:52:01 2016
New Revision: 1750530

URL: http://svn.apache.org/viewvc?rev=1750530&view=rev
Log:
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