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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user