[Schmitzm-commits] r1578 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 11 13:32:38 CEST 2011


Author: alfonx
Date: 2011-05-11 13:32:38 +0200 (Wed, 11 May 2011)
New Revision: 1578

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LimitedHashMap.java
Log:
In Limited Hashmap neue Funktion overwritten:


	/**
	 * Von Stefan Tzeggai nachgepflegt: Bestimmt nicht optimal, aber hauptsache nicht ganz am LImited-Algorithmus
	 * vorbei.
	 */
	@Override
	public void putAll(Map<? extends K, ? extends V> m) {
		for (K key : m.keySet()) {
			put(key, m.get(key));
		}
	}

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LimitedHashMap.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LimitedHashMap.java	2011-05-11 11:31:48 UTC (rev 1577)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LimitedHashMap.java	2011-05-11 11:32:38 UTC (rev 1578)
@@ -178,7 +178,7 @@
 	 */
 	@Override
 	public V put(K key, V value) {
-		int oldSize = size();
+		// int oldSize = size();
 		V oldValue = super.put(key, value);
 
 		// truncate the map before updating the oldest list, so that



More information about the Schmitzm-commits mailing list