Author: rwhitcomb Date: Mon Nov 6 16:29:32 2017 New Revision: 1814428 URL: http://svn.apache.org/viewvc?rev=1814428&view=rev Log: Code cleanup: Make some error messages from Utils methods read more nicely by capitalizing the first word of the sentence.
Modified: pivot/trunk/core/src/org/apache/pivot/util/Utils.java Modified: pivot/trunk/core/src/org/apache/pivot/util/Utils.java URL: http://svn.apache.org/viewvc/pivot/trunk/core/src/org/apache/pivot/util/Utils.java?rev=1814428&r1=1814427&r2=1814428&view=diff ============================================================================== --- pivot/trunk/core/src/org/apache/pivot/util/Utils.java (original) +++ pivot/trunk/core/src/org/apache/pivot/util/Utils.java Mon Nov 6 16:29:32 2017 @@ -221,7 +221,7 @@ public class Utils { throw new IllegalArgumentException("end (" + end + ") < " + "start (" + start + ")"); } if (index < start || index > end) { - throw new IndexOutOfBoundsException("index " + index + " out of bounds [" + start + "," + throw new IndexOutOfBoundsException("Index " + index + " out of bounds [" + start + "," + end + "]."); } } @@ -236,7 +236,7 @@ public class Utils { */ public static void checkZeroBasedIndex(int index, int size) { if (index < 0 || index >= size) { - throw new IndexOutOfBoundsException("index " + index + " out of bounds [0," + (size-1) + "]."); + throw new IndexOutOfBoundsException("Index " + index + " out of bounds [0," + (size-1) + "]."); } } @@ -261,12 +261,12 @@ public class Utils { + ") < 0"); } if (index < start) { - throw new IndexOutOfBoundsException("index " + index + " out of bounds [" + start + "," + throw new IndexOutOfBoundsException("Index " + index + " out of bounds [" + start + "," + end + "]."); } if (index + count > end) { - throw new IndexOutOfBoundsException("index + count " + index + "," + count + throw new IndexOutOfBoundsException("Index + count " + index + "," + count + " out of bounds [" + start + "," + end + "]."); } }