* Fix issue 464

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9443 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..om 13 years ago
parent 3cdeb6ed4d
commit 59336dee4d
  1. 4
      engine/src/core/com/jme3/util/IntMap.java

@ -61,11 +61,11 @@ public final class IntMap<T> implements Iterable<Entry<T>>, Cloneable {
if (initialCapacity > 1 << 30){
throw new IllegalArgumentException("initialCapacity is too large.");
}
if (initialCapacity < 0){
if (initialCapacity <= 0){
throw new IllegalArgumentException("initialCapacity must be greater than zero.");
}
if (loadFactor <= 0){
throw new IllegalArgumentException("initialCapacity must be greater than zero.");
throw new IllegalArgumentException("loadFactor must be greater than zero.");
}
capacity = 1;
while (capacity < initialCapacity){

Loading…
Cancel
Save