+1
nits: I guess the class should be made static if nested here, or even
made concrete to get rid of the anonymous class - that depends on if we
think we'll ever reuse this utility for other things.
/Claes
On 2016-02-12 16:45, Chris Hegarty wrote:
sun.misc.LRUCache is a utility class for implementing Least Recently
Used Caches. It is only used by j.u.Scanner in the JDK. It should be
relocated to a more suitable location, possibly an inner class of
Scanner.
http://cr.openjdk.java.net/~chegar/8149656/
-Chris.