Author: arunpatidar
Date: Mon Jul 4 16:36:07 2016
New Revision: 1751336
URL:
http://svn.apache.org/viewvc?rev=1751336&view=revLog:
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.
*/