From 4c21819f22436f7643c204672423c81255c062ee Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Wed, 11 Nov 2009 20:41:31 +0000 Subject: [PATCH] Adapt to the new google-collect jar. Thanks Charlie. --- src/java/com/samskivert/depot/KeySet.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/java/com/samskivert/depot/KeySet.java b/src/java/com/samskivert/depot/KeySet.java index f6bb620..900f8c7 100644 --- a/src/java/com/samskivert/depot/KeySet.java +++ b/src/java/com/samskivert/depot/KeySet.java @@ -177,10 +177,10 @@ public abstract class KeySet extends WhereClause // from Iterable> public Iterator> iterator () { return Iterators.transform( - Iterators.forArray(_keys, 0, _keys.length), new Function, Key>() { - public Key apply (Comparable key) { - return new Key(_pClass, new Comparable[] { key }); - } + Iterators.forArray(_keys), new Function, Key>() { + public Key apply (Comparable key) { + return new Key(_pClass, new Comparable[] { key }); + } }); } @@ -230,11 +230,11 @@ public abstract class KeySet extends WhereClause // from Iterable> public Iterator> iterator () { - return Iterators.transform(Iterators.forArray(_keys, 0, _keys.length), - new Function[], Key>() { - public Key apply (Comparable[] key) { - return new Key(_pClass, key); - } + return Iterators.transform( + Iterators.forArray(_keys), new Function[], Key>() { + public Key apply (Comparable[] key) { + return new Key(_pClass, key); + } }); }