openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r548431 - /openjpa/trunk/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java
Date Mon, 18 Jun 2007 18:18:56 GMT
Author: mprudhom
Date: Mon Jun 18 11:18:55 2007
New Revision: 548431

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

Modified:
    openjpa/trunk/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java

Modified: openjpa/trunk/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java?view=diff&rev=548431&r1=548430&r2=548431
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java
Mon Jun 18 11:18:55 2007
@@ -52,6 +52,6 @@
             getClassName(WASManagedRuntime.INTERFACE);
         assertTrue("message should have contained "
             + interfaceName + ", but was '" + msg + "'",
-            msg.contains(interfaceName));
+            msg.indexOf(interfaceName) != -1);
     }
 }



Mime
View raw message