openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r550158 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java
Date Sun, 24 Jun 2007 03:30:27 GMT
Author: mprudhom
Date: Sat Jun 23 20:30:26 2007
New Revision: 550158

URL: http://svn.apache.org/viewvc?view=rev&rev=550158
Log:
Remove use of JDK 1.5-only method String.contains().

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java?view=diff&rev=550158&r1=550157&r2=550158
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java (original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SelectImpl.java Sat
Jun 23 20:30:26 2007
@@ -1911,7 +1911,7 @@
             }
         }
         if (!fromParent && _parent != null) {
-            boolean removeAliasFromParent = key.toString().contains(":");
+            boolean removeAliasFromParent = key.toString().indexOf(":") != -1;
             alias = _parent.findAlias(table, key, removeAliasFromParent, this);
             if (alias != null) {
                 if (removeAliasFromParent) {



Mime
View raw message