openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r429440 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java
Date Mon, 07 Aug 2006 19:18:04 GMT
Author: awhite
Date: Mon Aug  7 12:18:04 2006
New Revision: 429440

URL: http://svn.apache.org/viewvc?rev=429440&view=rev
Log:
Anything can be converted to a string in query comparisons.


Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java?rev=429440&r1=429439&r2=429440&view=diff
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java
Mon Aug  7 12:18:04 2006
@@ -222,8 +222,9 @@
             || (c2Number && (c1 == Character.class
             || (!strict && c1 == String.class))))
             return true;
-        if ((c1 == String.class && c2 == Character.class)
-            || (c1 == Character.class && c2 == String.class))
+        if (c1 == String.class && c2 == Character.class)
+            return true;
+        if (c2 == String.class)
             return true;
         return false;
     }



Mime
View raw message