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
This commit is contained in:
Mark Robert Miller 2009-08-25 12:29:15 +00:00
parent 4b441c2eef
commit ca3f86d815
1 changed files with 1 additions and 1 deletions

View File

@ -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;