Small Fix

-Fixed: HashSet/Map.reduce was using size to iterate instead of array.length
This commit is contained in:
2022-05-31 19:05:54 +02:00
parent 36f24731b0
commit 569d4f5c86
4 changed files with 8 additions and 8 deletions
@@ -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;