Joern Kottmann created OPENNLP-887:
--------------------------------------
Summary: Replace the Cache class with a LinkedHashMap
Key: OPENNLP-887
URL: https://issues.apache.org/jira/browse/OPENNLP-887
Project: OpenNLP
Issue Type: Improvement
Reporter: Joern Kottmann
Assignee: Joern Kottmann
Priority: Minor
The existing cache implementation could be replaced with
java.util.LinkedHashMap. This change would replace our custom implementation
with an implementation which will be maintained for us.
To have the same behaviour as our implementation LinkedHashMap must be
subclasses. The LinkedHashMap.removeEldestEntry must be overwritten and return
true if size limit is reached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)