Bugfix
This commit is contained in:
parent
d265abc4d7
commit
f8377c3e63
@ -265,7 +265,9 @@ public class DatabaseMapDictionaryHashed<T, U, TH> implements DatabaseStageMap<T
|
||||
entries.add(Map.entry(key, value));
|
||||
return entries;
|
||||
} else {
|
||||
return new ObjectArraySet<>(new Object[] {Map.entry(key, value)});
|
||||
var oas = new ObjectArraySet<Entry<T, U>>(1);
|
||||
oas.add(Map.entry(key, value));
|
||||
return oas;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -154,7 +154,9 @@ public class DatabaseSingleBucket<K, V, TH> implements DatabaseStageEntry<V> {
|
||||
entries.add(Map.entry(key, value));
|
||||
return entries;
|
||||
} else {
|
||||
return new ObjectArraySet<>(new Object[] {Map.entry(key, value)});
|
||||
var oas = new ObjectArraySet<Entry<K, V>>(1);
|
||||
oas.add(Map.entry(key, value));
|
||||
return oas;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ class ValuesSetSerializer<X> implements Serializer<Set<X>, ByteBuf> {
|
||||
X entry = entrySerializer.deserialize(serialized.retain());
|
||||
values[i] = entry;
|
||||
}
|
||||
return new ObjectArraySet<>(values);
|
||||
return new ObjectArraySet<>(values, values.length);
|
||||
} finally {
|
||||
serialized.release();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user