Author: jason.greene(a)jboss.com
Date: 2008-10-27 13:33:57 -0400 (Mon, 27 Oct 2008)
New Revision: 7017
Modified:
core/trunk/src/main/java/org/jboss/cache/UnversionedNode.java
Log:
Re-add eclipse compiler casts
Modified: core/trunk/src/main/java/org/jboss/cache/UnversionedNode.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/UnversionedNode.java 2008-10-27 05:01:55 UTC
(rev 7016)
+++ core/trunk/src/main/java/org/jboss/cache/UnversionedNode.java 2008-10-27 17:33:57 UTC
(rev 7017)
@@ -461,7 +461,9 @@
{
// replace key!
Entry<? extends K, ? extends V> e = data.entrySet().iterator().next();
- this.data = Collections.singletonMap(e.getKey(), e.getValue());
+
+ // These casts are a work-around for an eclipse compiler bug, please
don't remove ;)
+ this.data = Collections.singletonMap((K)e.getKey(), (V) e.getValue());
}
else
{
Show replies by date