From f9515e161963be819e388fa0d15be3968725e6bb Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Sat, 19 May 2012 19:52:53 +0400 Subject: [PATCH] exception messages to upper case --- libraries/stdlib/src/kotlin/ImmutableArrayList.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/stdlib/src/kotlin/ImmutableArrayList.kt b/libraries/stdlib/src/kotlin/ImmutableArrayList.kt index 2de2a9fd8b0..d0d11aa3b05 100644 --- a/libraries/stdlib/src/kotlin/ImmutableArrayList.kt +++ b/libraries/stdlib/src/kotlin/ImmutableArrayList.kt @@ -11,11 +11,11 @@ private class ImmutableArrayList( { // impossible if (offset < 0) { - throw IllegalArgumentException("negative offset ($offset)") + throw IllegalArgumentException("Negative offset ($offset)") } // impossible if (length < 0) { - throw IllegalArgumentException("negative length ($length)") + throw IllegalArgumentException("Negative length ($length)") } // possible when builder is used from different threads if (offset + length > array.size) { @@ -25,7 +25,7 @@ private class ImmutableArrayList( protected fun indexInArray(index: Int): Int { if (index < 0) { - throw IndexOutOfBoundsException("negative index ($index)") + throw IndexOutOfBoundsException("Negative index ($index)") } if (index >= length) { throw IndexOutOfBoundsException("index ($index) >= length ($length)") @@ -39,7 +39,7 @@ private class ImmutableArrayList( public override fun subList(fromIndex: Int, toIndex: Int) : List { if (fromIndex < 0) { - throw IndexOutOfBoundsException("negative from index ($fromIndex)") + throw IndexOutOfBoundsException("Negative from index ($fromIndex)") } if (toIndex < fromIndex) { throw IndexOutOfBoundsException("toIndex ($toIndex) < fromIndex ($fromIndex)")