Fix warning: Remove obsolete close (try-with-resources)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709251 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2015-10-18 10:08:13 +00:00
parent cf0c29a018
commit 0acf3d9da8
2 changed files with 0 additions and 2 deletions

View File

@ -214,7 +214,6 @@ public class BooleanPerceptronClassifier implements Classifier<Boolean> {
} }
} }
tokenStream.end(); tokenStream.end();
tokenStream.close();
} }
double score = 1 - Math.exp(-1 * Math.abs(threshold - output.doubleValue()) / threshold); double score = 1 - Math.exp(-1 * Math.abs(threshold - output.doubleValue()) / threshold);

View File

@ -222,7 +222,6 @@ public class SimpleNaiveBayesClassifier implements Classifier<BytesRef> {
result.add(charTermAttribute.toString()); result.add(charTermAttribute.toString());
} }
tokenStream.end(); tokenStream.end();
tokenStream.close();
} }
} }
return result.toArray(new String[result.size()]); return result.toArray(new String[result.size()]);