From 59336dee4d6c56bc482e149ad1a7ef6e642da2c1 Mon Sep 17 00:00:00 2001 From: "Sha..om" Date: Fri, 1 Jun 2012 04:09:27 +0000 Subject: [PATCH] * Fix issue 464 git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9443 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/util/IntMap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/util/IntMap.java b/engine/src/core/com/jme3/util/IntMap.java index 1b9111980..f5a12ce4c 100644 --- a/engine/src/core/com/jme3/util/IntMap.java +++ b/engine/src/core/com/jme3/util/IntMap.java @@ -61,11 +61,11 @@ public final class IntMap implements Iterable>, 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){