Author: arunpatidar
Date: Tue Aug 2 14:14:21 2016
New Revision: 1754935
URL:
http://svn.apache.org/viewvc?rev=1754935&view=revLog:
Applied patch from jira issue - OFBIZ-7802 - Enforce noninstantiability to ProductWorker class. Thanks Chinmay Patidar and Rishi Solanki for your contribution.
Modified:
ofbiz/trunk/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductWorker.java
Modified: ofbiz/trunk/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductWorker.java?rev=1754935&r1=1754934&r2=1754935&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductWorker.java (original)
+++ ofbiz/trunk/applications/product/src/main/java/org/apache/ofbiz/product/product/ProductWorker.java Tue Aug 2 14:14:21 2016
@@ -53,12 +53,12 @@ import org.apache.ofbiz.service.ModelSer
/**
* Product Worker class to reduce code in JSPs.
*/
-public class ProductWorker {
+public final class ProductWorker {
public static final String module = ProductWorker.class.getName();
- public static final String resource = "ProductUiLabels";
+ private static final String resource = "ProductUiLabels";
- public static final MathContext generalRounding = new MathContext(10);
+ private static final MathContext generalRounding = new MathContext(10);
private ProductWorker () {}