#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:
Erik Hatcher 2003-10-09 01:22:21 +00:00
parent ded5fcb7ac
commit b67b9df567
2 changed files with 14 additions and 0 deletions

View File

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

View File

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