* Fix issue 464
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9443 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
3cdeb6ed4d
commit
59336dee4d
@ -61,11 +61,11 @@ public final class IntMap<T> implements Iterable<Entry<T>>, Cloneable {
|
|||||||
if (initialCapacity > 1 << 30){
|
if (initialCapacity > 1 << 30){
|
||||||
throw new IllegalArgumentException("initialCapacity is too large.");
|
throw new IllegalArgumentException("initialCapacity is too large.");
|
||||||
}
|
}
|
||||||
if (initialCapacity < 0){
|
if (initialCapacity <= 0){
|
||||||
throw new IllegalArgumentException("initialCapacity must be greater than zero.");
|
throw new IllegalArgumentException("initialCapacity must be greater than zero.");
|
||||||
}
|
}
|
||||||
if (loadFactor <= 0){
|
if (loadFactor <= 0){
|
||||||
throw new IllegalArgumentException("initialCapacity must be greater than zero.");
|
throw new IllegalArgumentException("loadFactor must be greater than zero.");
|
||||||
}
|
}
|
||||||
capacity = 1;
|
capacity = 1;
|
||||||
while (capacity < initialCapacity){
|
while (capacity < initialCapacity){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user