Martin Wiesner created OPENNLP-1586:
---------------------------------------
Summary: Prevent resource leaks in BrownCluster and
WordClusterDictionary
Key: OPENNLP-1586
URL: https://issues.apache.org/jira/browse/OPENNLP-1586
Project: OpenNLP
Issue Type: Improvement
Components: Machine Learning
Affects Versions: 2.3.3
Reporter: Martin Wiesner
Assignee: Martin Wiesner
Fix For: 2.3.4
With the current implementation of BrownCluster and WordClusterDictionary, a
resource leak can occur as instances of Reader / Writer and the underlying
Input-/OutputStream objects are not closed properly after use.
Aims:
- Ensure that try-with-resources fixes the risk of resource leaks.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)