diff --git a/src/java/com/samskivert/depot/tests/TestCacheAdapter.java b/src/java/com/samskivert/depot/tests/TestCacheAdapter.java index 492ef21..0efa616 100644 --- a/src/java/com/samskivert/depot/tests/TestCacheAdapter.java +++ b/src/java/com/samskivert/depot/tests/TestCacheAdapter.java @@ -69,15 +69,13 @@ public class TestCacheAdapter implements CacheAdapter // System.err.println("REMOVE " + key); _cache.remove(new Tuple(cacheId, key)); } - public Iterable>> enumerate (String cacheId) + public Iterable enumerate (String cacheId) { // in a real implementation this would be a lazily constructed iterable - List>> result = Lists.newArrayList(); + List result = Lists.newArrayList(); for (Map.Entry, CachedValue> entry: _cache.entrySet()) { if (entry.getKey().left.equals(cacheId)) { - @SuppressWarnings("unchecked") - CachedValue value = (CachedValue) entry.getValue(); - result.add(Tuple.newTuple(entry.getKey().right, value)); + result.add(entry.getKey().right); } } return result;