+ fix minor array allocation problem

This commit is contained in:
Costin Leau
2010-11-25 20:02:10 +02:00
parent 9996eddd5c
commit a80a4db549

View File

@@ -129,7 +129,7 @@ public class DefaultRedisSet<E> extends AbstractRedisCollection<E> implements Re
}
private String[] extractKeys(RedisSet<?>... sets) {
String[] keys = new String[sets.length + 1];
String[] keys = new String[sets.length];
for (int i = 0; i < keys.length; i++) {
keys[i] = sets[i].getKey();
}