You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2016/07/04 16:36:08 UTC

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

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.
      */