Small Fix

-Fixed: HashSet/Map.reduce was using size to iterate instead of array.length
This commit is contained in:
Speiger committed 2022-05-31 19:05:54 +02:00
1 parent 36f24731b0
commit 569d4f5c86
4 files changed
+8 -8

No files matched your search

@@ -589,7 +589,7 @@ public class CUSTOM_HASH_SET KEY_GENERIC_TYPE extends ABSTRACT_SET KEY_GENERIC_T
state = keys[nullIndex];
empty = false;
}
for(int i = 0;i<size;i++) {
for(int i = nullIndex-1;i>=0;i--) {
if(strategy.equals(keys[i], EMPTY_KEY_VALUE)) continue;
if(empty) {
empty = false;