svn commit: r1751306 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java

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

svn commit: r1751306 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityUtil.java

Arun Patidar-4
Author: arunpatidar
Date: Mon Jul  4 15:06:34 2016
New Revision: 1751306

URL: http://svn.apache.org/viewvc?rev=1751306&view=rev
Log:
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>();