You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2016/07/05 14:05:06 UTC

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

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 {