mirror of https://github.com/apache/lucene.git
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:
parent
cf0c29a018
commit
0acf3d9da8
|
@ -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);
|
||||||
|
|
|
@ -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()]);
|
||||||
|
|
Loading…
Reference in New Issue