clear check message in TinyMap
This commit is contained in:
parent
457b43c4cd
commit
02fb8cbe09
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ public abstract class TinyMap<K, V> extends IndexedMapBase<K, V> {
|
||||||
public TinyMap<K, V> buildWithKeys(TinySet<K> keys) {
|
public TinyMap<K, V> buildWithKeys(TinySet<K> keys) {
|
||||||
compact();
|
compact();
|
||||||
Preconditions.checkArgument(keys.size() == size(),
|
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()));
|
return new SizeAny<>(keys, Arrays.copyOf(values, keys.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue