--- old/src/share/classes/java/util/LinkedHashMap.java 2013-06-10 10:37:54.889879004 +0100 +++ new/src/share/classes/java/util/LinkedHashMap.java 2013-06-10 10:37:54.609879011 +0100 @@ -437,13 +437,13 @@ *
Sample use: this override will allow the map to grow up to 100 * entries and then delete the eldest entry each time a new entry is * added, maintaining a steady state of 100 entries. - *
+ ** *{@code * private static final int MAX_ENTRIES = 100; * * protected boolean removeEldestEntry(Map.Entry eldest) { * return size() > MAX_ENTRIES; * } - *+ * }
This method typically does not modify the map in any way, * instead allowing the map to modify itself as directed by its