From 6bad8ff71558cc7207a7a6098ef14f69a3e19863 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Tue, 24 Apr 2007 21:50:49 +0000 Subject: [PATCH] Removed use of JDK 1.5+ String.contains() method git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532101 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java index 56c526ad0..d22c185ec 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingTool.java @@ -388,7 +388,7 @@ public class MappingTool */ 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;