openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r883895 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java
Date Tue, 24 Nov 2009 22:05:26 GMT
Author: ppoddar
Date: Tue Nov 24 22:05:26 2009
New Revision: 883895

URL: http://svn.apache.org/viewvc?rev=883895&view=rev
Log:
Cut down processing cost for identical type.

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

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java?rev=883895&r1=883894&r2=883895&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/Filters.java Tue
Nov 24 22:05:26 2009
@@ -216,6 +216,8 @@
      * an instance of the second.
      */
     public static boolean canConvert(Class<?> c1, Class<?> c2, boolean strict)
{
+        if (c1 == c2)
+            return true;
         c1 = wrap(c1);
         c2 = wrap(c2);
         if (c2.isAssignableFrom(c1))



Mime
View raw message