svn commit: r687578 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityComparisonOperator.java

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

svn commit: r687578 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityComparisonOperator.java

lektran
Author: lektran
Date: Wed Aug 20 23:31:02 2008
New Revision: 687578

URL: http://svn.apache.org/viewvc?rev=687578&view=rev
Log:
Reverted some of the recent generics work which seems to be causing the issues reported in the user mailing lists by BJ Freeman and Sharan Foga.

Adam, it would be great if you could take another look at this

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityComparisonOperator.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityComparisonOperator.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityComparisonOperator.java?rev=687578&r1=687577&r2=687578&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityComparisonOperator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityComparisonOperator.java Wed Aug 20 23:31:02 2008
@@ -127,7 +127,7 @@
         }
     }
             
-    public <T extends Comparable<T>> boolean compare(T lhs, T rhs) {
+    public <T extends Comparable<T>> boolean compare(T lhs, Object rhs) {
         throw new UnsupportedOperationException(codeString);
     }
 
@@ -155,7 +155,7 @@
         }
 
         if (leftValue == WILDCARD || rightValue == WILDCARD) return true;
-        return compare((Comparable) leftValue, (Comparable) rightValue);
+        return compare((Comparable) leftValue, rightValue);
     }
 
     public EntityCondition freeze(Object lhs, Object rhs) {