clear check message in TinyMap

This commit is contained in:
Jörg Prante 2023-02-05 17:17:09 +01:00
parent 457b43c4cd
commit 02fb8cbe09

View file

@ -174,7 +174,7 @@ public abstract class TinyMap<K, V> extends IndexedMapBase<K, V> {
public TinyMap<K, V> buildWithKeys(TinySet<K> keys) {
compact();
Preconditions.checkArgument(keys.size() == size(),
"Must have same size");
"keys does not have same size after compact: keys = " + keys.size() + " size = " + size());
return new SizeAny<>(keys, Arrays.copyOf(values, keys.size()));
}