svn commit: r1751482 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java

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

svn commit: r1751482 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java

Arun Patidar-4
Author: arunpatidar
Date: Tue Jul  5 14:05:06 2016
New Revision: 1751482

URL: http://svn.apache.org/viewvc?rev=1751482&view=rev
Log:
Applied patch from jira issue - OFBIZ-7717 - Enforce noninstantiability to EntityTypeUtil class. Thanks Rahul Singh Kushwah and Rishi Solanki for your contribution.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java?rev=1751482&r1=1751481&r2=1751482&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java Tue Jul  5 14:05:06 2016
@@ -31,10 +31,12 @@ import org.ofbiz.entity.GenericValue;
  * Makes it easier to deal with entities that follow the
  * extensibility pattern and that can be of various types as identified in the database.
  */
-public class EntityTypeUtil {
+public final class EntityTypeUtil {
 
     public static final String module = EntityTypeUtil.class.getName();
 
+    private EntityTypeUtil() {}
+
     public static boolean isType(Collection<GenericValue> thisCollection, String typeRelation, GenericValue targetType) {
         for (GenericValue value: thisCollection) {
             try {