Fix copy/paste error... that was itself copy/pasted.

Strings were always being shoved into a Comparable array.
Does the array type matter? Apparently not. We should just
rip out these tests and always store in a Comparable[].
This commit is contained in:
Ray J. Greenwell
2015-02-02 13:33:27 -08:00
parent db71c3de69
commit 8981467b29
@@ -52,7 +52,7 @@ public abstract class KeySet<T extends PersistentRecord> extends WhereClause
Comparable<?>[] keyArray;
if (first instanceof Integer) {
keyArray = new Integer[keys.size()];
} else if (first instanceof Integer) {
} else if (first instanceof String) {
keyArray = new String[keys.size()];
} else {
keyArray = new Comparable<?>[keys.size()];
@@ -96,7 +96,7 @@ public abstract class KeySet<T extends PersistentRecord> extends WhereClause
Comparable<?>[] keyArray;
if (first instanceof Integer) {
keyArray = new Integer[keys.size()];
} else if (first instanceof Integer) {
} else if (first instanceof String) {
keyArray = new String[keys.size()];
} else {
keyArray = new Comparable<?>[keys.size()];