@@ -488,10 +488,7 @@ public actual inline infix fun <T> Array<out T>.contentDeepEquals(other: Array<o
488
488
@JvmName(" contentDeepEqualsNullable" )
489
489
@kotlin.internal.InlineOnly
490
490
public actual inline infix fun <T > Array <out T >?.contentDeepEquals (other : Array <out T >? ): Boolean {
491
- if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 ))
492
- return contentDeepEqualsImpl(other)
493
- else
494
- return java.util.Arrays .deepEquals(this , other)
491
+ return contentDeepEqualsImpl(other)
495
492
}
496
493
497
494
/* *
@@ -518,10 +515,7 @@ public actual inline fun <T> Array<out T>.contentDeepHashCode(): Int {
518
515
@JvmName(" contentDeepHashCodeNullable" )
519
516
@kotlin.internal.InlineOnly
520
517
public actual inline fun <T > Array <out T >?.contentDeepHashCode (): Int {
521
- if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 ))
522
- return contentDeepHashCodeImpl()
523
- else
524
- return java.util.Arrays .deepHashCode(this )
518
+ return contentDeepHashCodeImpl()
525
519
}
526
520
527
521
/* *
@@ -554,10 +548,7 @@ public actual inline fun <T> Array<out T>.contentDeepToString(): String {
554
548
@JvmName(" contentDeepToStringNullable" )
555
549
@kotlin.internal.InlineOnly
556
550
public actual inline fun <T > Array <out T >?.contentDeepToString (): String {
557
- if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 ))
558
- return contentDeepToStringImpl()
559
- else
560
- return java.util.Arrays .deepToString(this )
551
+ return contentDeepToStringImpl()
561
552
}
562
553
563
554
/* *
@@ -1345,12 +1336,7 @@ public actual inline fun <T> Array<T>.copyOf(newSize: Int): Array<T?> {
1345
1336
@JvmName(" copyOfRangeInline" )
1346
1337
@kotlin.internal.InlineOnly
1347
1338
public actual inline fun <T > Array<T>.copyOfRange (fromIndex : Int , toIndex : Int ): Array <T > {
1348
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1349
- copyOfRangeImpl(fromIndex, toIndex)
1350
- } else {
1351
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1352
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1353
- }
1339
+ return copyOfRangeImpl(fromIndex, toIndex)
1354
1340
}
1355
1341
1356
1342
/* *
@@ -1365,12 +1351,7 @@ public actual inline fun <T> Array<T>.copyOfRange(fromIndex: Int, toIndex: Int):
1365
1351
@JvmName(" copyOfRangeInline" )
1366
1352
@kotlin.internal.InlineOnly
1367
1353
public actual inline fun ByteArray.copyOfRange (fromIndex : Int , toIndex : Int ): ByteArray {
1368
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1369
- copyOfRangeImpl(fromIndex, toIndex)
1370
- } else {
1371
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1372
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1373
- }
1354
+ return copyOfRangeImpl(fromIndex, toIndex)
1374
1355
}
1375
1356
1376
1357
/* *
@@ -1385,12 +1366,7 @@ public actual inline fun ByteArray.copyOfRange(fromIndex: Int, toIndex: Int): By
1385
1366
@JvmName(" copyOfRangeInline" )
1386
1367
@kotlin.internal.InlineOnly
1387
1368
public actual inline fun ShortArray.copyOfRange (fromIndex : Int , toIndex : Int ): ShortArray {
1388
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1389
- copyOfRangeImpl(fromIndex, toIndex)
1390
- } else {
1391
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1392
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1393
- }
1369
+ return copyOfRangeImpl(fromIndex, toIndex)
1394
1370
}
1395
1371
1396
1372
/* *
@@ -1405,12 +1381,7 @@ public actual inline fun ShortArray.copyOfRange(fromIndex: Int, toIndex: Int): S
1405
1381
@JvmName(" copyOfRangeInline" )
1406
1382
@kotlin.internal.InlineOnly
1407
1383
public actual inline fun IntArray.copyOfRange (fromIndex : Int , toIndex : Int ): IntArray {
1408
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1409
- copyOfRangeImpl(fromIndex, toIndex)
1410
- } else {
1411
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1412
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1413
- }
1384
+ return copyOfRangeImpl(fromIndex, toIndex)
1414
1385
}
1415
1386
1416
1387
/* *
@@ -1425,12 +1396,7 @@ public actual inline fun IntArray.copyOfRange(fromIndex: Int, toIndex: Int): Int
1425
1396
@JvmName(" copyOfRangeInline" )
1426
1397
@kotlin.internal.InlineOnly
1427
1398
public actual inline fun LongArray.copyOfRange (fromIndex : Int , toIndex : Int ): LongArray {
1428
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1429
- copyOfRangeImpl(fromIndex, toIndex)
1430
- } else {
1431
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1432
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1433
- }
1399
+ return copyOfRangeImpl(fromIndex, toIndex)
1434
1400
}
1435
1401
1436
1402
/* *
@@ -1445,12 +1411,7 @@ public actual inline fun LongArray.copyOfRange(fromIndex: Int, toIndex: Int): Lo
1445
1411
@JvmName(" copyOfRangeInline" )
1446
1412
@kotlin.internal.InlineOnly
1447
1413
public actual inline fun FloatArray.copyOfRange (fromIndex : Int , toIndex : Int ): FloatArray {
1448
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1449
- copyOfRangeImpl(fromIndex, toIndex)
1450
- } else {
1451
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1452
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1453
- }
1414
+ return copyOfRangeImpl(fromIndex, toIndex)
1454
1415
}
1455
1416
1456
1417
/* *
@@ -1465,12 +1426,7 @@ public actual inline fun FloatArray.copyOfRange(fromIndex: Int, toIndex: Int): F
1465
1426
@JvmName(" copyOfRangeInline" )
1466
1427
@kotlin.internal.InlineOnly
1467
1428
public actual inline fun DoubleArray.copyOfRange (fromIndex : Int , toIndex : Int ): DoubleArray {
1468
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1469
- copyOfRangeImpl(fromIndex, toIndex)
1470
- } else {
1471
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1472
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1473
- }
1429
+ return copyOfRangeImpl(fromIndex, toIndex)
1474
1430
}
1475
1431
1476
1432
/* *
@@ -1485,12 +1441,7 @@ public actual inline fun DoubleArray.copyOfRange(fromIndex: Int, toIndex: Int):
1485
1441
@JvmName(" copyOfRangeInline" )
1486
1442
@kotlin.internal.InlineOnly
1487
1443
public actual inline fun BooleanArray.copyOfRange (fromIndex : Int , toIndex : Int ): BooleanArray {
1488
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1489
- copyOfRangeImpl(fromIndex, toIndex)
1490
- } else {
1491
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1492
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1493
- }
1444
+ return copyOfRangeImpl(fromIndex, toIndex)
1494
1445
}
1495
1446
1496
1447
/* *
@@ -1505,12 +1456,7 @@ public actual inline fun BooleanArray.copyOfRange(fromIndex: Int, toIndex: Int):
1505
1456
@JvmName(" copyOfRangeInline" )
1506
1457
@kotlin.internal.InlineOnly
1507
1458
public actual inline fun CharArray.copyOfRange (fromIndex : Int , toIndex : Int ): CharArray {
1508
- return if (kotlin.internal.apiVersionIsAtLeast(1 , 3 , 0 )) {
1509
- copyOfRangeImpl(fromIndex, toIndex)
1510
- } else {
1511
- if (toIndex > size) throw IndexOutOfBoundsException (" toIndex: $toIndex , size: $size " )
1512
- java.util.Arrays .copyOfRange(this , fromIndex, toIndex)
1513
- }
1459
+ return copyOfRangeImpl(fromIndex, toIndex)
1514
1460
}
1515
1461
1516
1462
@SinceKotlin(" 1.3" )
0 commit comments