From 9119cc93136f8e7883784108fd1fa9b0d0049cc8 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Sat, 24 Jan 2009 23:11:46 +0000 Subject: [PATCH] Update the test too. --- src/java/com/samskivert/depot/tests/TestCacheAdapter.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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;