Improved: ‘EntityOperator#getId()’ is not used in the framework
(OFBIZ-10607) Thanks Mathieu Lirzin for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1850958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -28,7 +28,6 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import org.apache.ofbiz.base.util.UtilGenerics;
|
||||
import org.apache.ofbiz.entity.Delegator;
|
||||
@@ -60,7 +59,6 @@ public abstract class EntityOperator<L, R, T> implements Serializable {
|
||||
public static final int ID_NOT_IN = 13;
|
||||
public static final int ID_NOT_LIKE = 14;
|
||||
|
||||
private static final AtomicInteger dynamicId = new AtomicInteger();
|
||||
private static HashMap<String, EntityOperator<?,?,?>> registry = new HashMap<>();
|
||||
|
||||
private static <L,R,T> void registerCase(String name, EntityOperator<L,R,T> operator) {
|
||||
@@ -94,10 +92,6 @@ public abstract class EntityOperator<L, R, T> implements Serializable {
|
||||
return UtilGenerics.cast(operator);
|
||||
}
|
||||
|
||||
public static int requestId() {
|
||||
return dynamicId.get();
|
||||
}
|
||||
|
||||
public static final EntityComparisonOperator<?,?> EQUALS = new ComparableEntityComparisonOperator<Object>(ID_EQUALS, "=") {
|
||||
@Override
|
||||
public boolean compare(Comparable<Object> lhs, Object rhs) { return EntityComparisonOperator.compareEqual(lhs, rhs); }
|
||||
|
||||
Reference in New Issue
Block a user