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:
@@ -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()];
|
||||
|
||||
Reference in New Issue
Block a user