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/12/19 12:20:58 UTC

[jira] [Updated] (OPENNLP-887) Replace the Cache class with a LinkedHashMap

     [ https://issues.apache.org/jira/browse/OPENNLP-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joern Kottmann updated OPENNLP-887:
-----------------------------------
    Assignee: Suneel Marthi  (was: Joern Kottmann)

> 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: Suneel Marthi
>            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)