From ca3f86d815ce339e6f0eb64e5c7c66e68aee6d20 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Tue, 25 Aug 2009 12:29:15 +0000 Subject: [PATCH] remove java 1.5 code - String.contains git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@807578 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/lucene/queryParser/TestQueryParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/org/apache/lucene/queryParser/TestQueryParser.java b/src/test/org/apache/lucene/queryParser/TestQueryParser.java index 45fe0f69fc4..1bd4f23c4f2 100644 --- a/src/test/org/apache/lucene/queryParser/TestQueryParser.java +++ b/src/test/org/apache/lucene/queryParser/TestQueryParser.java @@ -506,7 +506,7 @@ public class TestQueryParser extends LocalizedTestCase { } private String escapeDateString(String s) { - if (s.contains(" ")) { + if (s.indexOf(" ") > -1) { return "\"" + s + "\""; } else { return s;