You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/04/11 15:47:20 UTC

svn commit: r1324761 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java

Author: smartini
Date: Wed Apr 11 13:47:20 2012
New Revision: 1324761

URL: http://svn.apache.org/viewvc?rev=1324761&view=rev
Log:
removed checks on min < 0 in indexBoundsCheck

Modified:
    pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java?rev=1324761&r1=1324760&r2=1324761&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/Component.java Wed Apr 11 13:47:20 2012
@@ -2930,9 +2930,6 @@ public abstract class Component implemen
         if (max < min) {
             throw new IllegalArgumentException("max (" + max + ") < " + "min (" + min + ")");
         }
-        if (min < 0) {
-            throw new IllegalArgumentException("min (" + min + ") < 0");
-        }
         if (index < min) {
             throw new IndexOutOfBoundsException(indexName + ": index (" + index + ") < min (" + min + ")");
         }