Author: arunpatidar
Date: Tue Jul 5 14:00:40 2016
New Revision: 1751480
URL:
http://svn.apache.org/viewvc?rev=1751480&view=revLog:
Applied patch from jira issue - OFBIZ-7716 - Enforce noninstantiability to CommonWorkers class. Thanks Rahul Singh Kushwah and Rishi Solanki for your contribution.
Modified:
ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java
Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java?rev=1751480&r1=1751479&r2=1751480&view=diff==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonWorkers.java Tue Jul 5 14:00:40 2016
@@ -37,10 +37,12 @@ import org.ofbiz.entity.util.EntityUtilP
/**
* Common Workers
*/
-public class CommonWorkers {
+public final class CommonWorkers {
public final static String module = CommonWorkers.class.getName();
+ private CommonWorkers() {}
+
public static List<GenericValue> getCountryList(Delegator delegator) {
List<GenericValue> geoList = new LinkedList<GenericValue>();
String defaultCountry = EntityUtilProperties.getPropertyValue("general", "country.geo.id.default", delegator);