From 7d7fba2cd224a9ac64501bd7a05347bb76eddfdf Mon Sep 17 00:00:00 2001 From: Arun Patidar Date: Tue, 5 Jul 2016 14:05:06 +0000 Subject: [PATCH] Applied patch from jira issue - OFBIZ-7717 - Enforce noninstantiability to EntityTypeUtil class. Thanks Rahul Singh Kushwah and Rishi Solanki for your contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751482 13f79535-47bb-0310-9956-ffa450edef68 --- .../entity/src/org/ofbiz/entity/util/EntityTypeUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java b/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java index 4a5ba968f0..a9a438f889 100644 --- a/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java +++ b/framework/entity/src/org/ofbiz/entity/util/EntityTypeUtil.java @@ -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 thisCollection, String typeRelation, GenericValue targetType) { for (GenericValue value: thisCollection) { try {