LRUMap.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

LRUMap.java

Adrian Crum-2
What is the purpose of LRUMap.java? It extends LinkedHashMap but it doesn't add any functionality. The class seems pointless. We could use LinkedHashMap instead.

-Adrian



     
Reply | Threaded
Open this post in threaded view
|

Re: LRUMap.java

Adam Heath-2
Adrian Crum wrote:
> What is the purpose of LRUMap.java? It extends LinkedHashMap but it doesn't add any functionality. The class seems pointless. We could use LinkedHashMap instead.

Backwards compatiblity, where external projects used LRUMap in the past.

Check the history, the class used to do a lot more.
Reply | Threaded
Open this post in threaded view
|

Re: LRUMap.java

Adrian Crum-2
--- On Fri, 1/8/10, Adam Heath <[hidden email]> wrote:
> Adrian Crum wrote:
> > What is the purpose of LRUMap.java? It extends
> LinkedHashMap but it doesn't add any functionality. The
> class seems pointless. We could use LinkedHashMap instead.
>
> Backwards compatiblity, where external projects used LRUMap
> in the past.
>
> Check the history, the class used to do a lot more.

Thanks for the info! Should we deprecate it then?

-Adrian