KT-5419 J2K: convert string concatenation to string template + implemented corresponding inspection
#KT-5419 Fixed
This commit is contained in:
+3
-3
@@ -3,10 +3,10 @@ package demo
|
||||
object Test {
|
||||
fun subListRangeCheck(fromIndex: Int, toIndex: Int, size: Int) {
|
||||
if (fromIndex < 0)
|
||||
throw IndexOutOfBoundsException("fromIndex = " + fromIndex)
|
||||
throw IndexOutOfBoundsException("fromIndex = $fromIndex")
|
||||
if (toIndex > size)
|
||||
throw IndexOutOfBoundsException("toIndex = " + toIndex)
|
||||
throw IndexOutOfBoundsException("toIndex = $toIndex")
|
||||
if (fromIndex > toIndex)
|
||||
throw IllegalArgumentException("fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")")
|
||||
throw IllegalArgumentException("fromIndex($fromIndex) > toIndex($toIndex)")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user