Author: arunpatidar
Date: Mon Jul 4 15:06:34 2016
New Revision: 1751306
URL:
http://svn.apache.org/viewvc?rev=1751306&view=revLog:
Applied patch from jira issue - OFBIZ-7733 - Enforce noninstantiability to EntityUtil class. Thanks Rohit Koushal for your contribution.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java?rev=1751306&r1=1751305&r2=1751306&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java Mon Jul 4 15:06:34 2016
@@ -52,10 +52,12 @@ import org.ofbiz.entity.model.ModelField
/**
* Helper methods when dealing with Entities, especially ones that follow certain conventions
*/
-public class EntityUtil {
+public final class EntityUtil {
public static final String module = EntityUtil.class.getName();
+ private EntityUtil() {}
+
@SafeVarargs
public static <V> Map<String, V> makeFields(V... args) {
Map<String, V> fields = new HashMap<String, V>();