svn commit: r1751336 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java

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

svn commit: r1751336 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java

Arun Patidar-4
Author: arunpatidar
Date: Mon Jul  4 16:36:07 2016
New Revision: 1751336

URL: http://svn.apache.org/viewvc?rev=1751336&view=rev
Log:
Applied patch from jira issue - OFBIZ-7689 - Enforce noninstantiability to PeriodWorker class. Thanks Rahul Singh and Rishi Solanki for your contribution.

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java?rev=1751336&r1=1751335&r2=1751336&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/period/PeriodWorker.java Mon Jul  4 16:36:07 2016
@@ -29,10 +29,12 @@ import org.ofbiz.entity.condition.Entity
 import org.ofbiz.entity.condition.EntityExpr;
 import org.ofbiz.entity.condition.EntityOperator;
 
-public class PeriodWorker {
+public final class PeriodWorker {
 
     public static String module = PeriodWorker.class.getName();
 
+    private PeriodWorker() {}
+
     /**
      * Method to get a condition that checks that the given fieldName is in a given timePeriod.
      */