openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r599596 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Date Thu, 29 Nov 2007 22:08:55 GMT
Author: mprudhom
Date: Thu Nov 29 14:08:54 2007
New Revision: 599596

URL: http://svn.apache.org/viewvc?rev=599596&view=rev
Log:
Changed JDK 1.5-specific String.contains() to JDK 1.4-compatible String.indexOf().

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

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=599596&r1=599595&r2=599596&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Thu Nov 29 14:08:54 2007
@@ -1652,13 +1652,13 @@
                 ret = ret + typeName.substring(idx + 3);
             return ret;
         }
-        if (! typeModifierSet.isEmpty()) {
+        if (!typeModifierSet.isEmpty()) {
             String s;
             idx = typeName.length();
             int curIdx = -1;
             for (Iterator i = typeModifierSet.iterator(); i.hasNext();) {
                 s = (String) i.next();
-                if (typeName.toUpperCase().contains(s)) {
+                if (typeName.toUpperCase().indexOf(s) != -1) {
                     curIdx = typeName.toUpperCase().indexOf(s);
                     if (curIdx != -1 && curIdx < idx) {
                         idx = curIdx;



Mime
View raw message