mirror of https://github.com/apache/lucene.git
#7782 - an ancient. this seems like the right thing to do, all relevant tests still pass
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150087 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ded5fcb7ac
commit
b67b9df567
|
@ -238,6 +238,13 @@ public class QueryParser implements QueryParserConstants {
|
||||||
break;
|
break;
|
||||||
v.addElement(t.termText());
|
v.addElement(t.termText());
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
source.close();
|
||||||
|
}
|
||||||
|
catch (IOException e) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
|
||||||
if (v.size() == 0)
|
if (v.size() == 0)
|
||||||
return null;
|
return null;
|
||||||
else if (v.size() == 1)
|
else if (v.size() == 1)
|
||||||
|
|
|
@ -300,6 +300,13 @@ public class QueryParser {
|
||||||
break;
|
break;
|
||||||
v.addElement(t.termText());
|
v.addElement(t.termText());
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
source.close();
|
||||||
|
}
|
||||||
|
catch (IOException e) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
|
||||||
if (v.size() == 0)
|
if (v.size() == 0)
|
||||||
return null;
|
return null;
|
||||||
else if (v.size() == 1)
|
else if (v.size() == 1)
|
||||||
|
|
Loading…
Reference in New Issue