You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Joern Kottmann (JIRA)" <ji...@apache.org> on 2016/11/10 00:21:59 UTC
[jira] [Created] (OPENNLP-887) Replace the Cache class with a
LinkedHashMap
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)