openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r532101 - /incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java
Date Tue, 24 Apr 2007 21:50:50 GMT
Author: mprudhom
Date: Tue Apr 24 14:50:49 2007
New Revision: 532101

URL: http://svn.apache.org/viewvc?view=rev&rev=532101
Log:
Removed use of JDK 1.5+ String.contains() method

Modified:
    incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java

Modified: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java?view=diff&rev=532101&r1=532100&r2=532101
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java
(original)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java
Tue Apr 24 14:50:49 2007
@@ -388,7 +388,7 @@
      */
     public SchemaGroup getSchemaGroup() {
         if (_schema == null) {
-            if (_action.contains(ACTION_BUILD_SCHEMA)) {
+            if (_action.indexOf(ACTION_BUILD_SCHEMA) != -1) {
                 DynamicSchemaFactory factory = new DynamicSchemaFactory();
                 factory.setConfiguration(_conf);
                 _schema = factory;



Mime
View raw message