/[Apache-SVN]
ViewVC logotype

Revision 1741161


Jump to revision: Previous Next
Author: joern
Date: Wed Apr 27 08:35:05 2016 UTC (8 years ago)
Changed paths: 1
Log Message:
OPENNLP-835 Fix early termination, reset behavior and minor memory leak

The class SequenceStreamEventStream has a few bugs.
(1) It truncates the stream early if any sequence is empty.
(2) After reset, it will emit the remaining elements from the underlying sequence that was being iterated over before the reset, and then start over from the beginning.
(3) It leaks memory by not discarding references to objects it doesn't need anymore.

Thanks to Steven Taschuk for providing a patch. 


Changed paths

Path Details
Directoryopennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ml/model/SequenceStreamEventStream.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26