mirror of https://github.com/apache/lucene.git
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:
parent
4b441c2eef
commit
ca3f86d815
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue