From b0f1ddc91efffa93ac2dd18feaa1b92d013d0f1a Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Thu, 25 Mar 2021 22:05:28 +0300 Subject: [PATCH] Advance max/min(By/With) deprecation level to ERROR --- .../codegen/box/regressions/kt6434.kt | 4 +- .../idea/completion/LookupElementFactory.kt | 2 +- .../debugger/test/AbstractFileRankingTest.kt | 2 +- .../idea/debugger/FileRankingCalculator.kt | 2 +- .../idea/perf/profilers/ProfilerHandler.kt | 2 +- .../ConvertCallChainIntoSequenceInspection.kt | 6 - .../SimplifiableCallChainInspection.kt | 32 +-- .../result/MaxOrMinTransformation.kt | 2 +- .../termination/max.kt | 5 - .../termination/max.kt.after | 5 - .../termination/maxBy.kt | 5 - .../termination/maxBy.kt.after | 5 - .../termination/maxWith.kt | 5 - .../termination/maxWith.kt.after | 5 - .../termination/min.kt | 5 - .../termination/min.kt.after | 5 - .../termination/minBy.kt | 5 - .../termination/minBy.kt.after | 5 - .../termination/minWith.kt | 5 - .../termination/minWith.kt.after | 5 - .../redundantAsSequence/hasLineBreak.kt | 2 +- .../redundantAsSequence/hasLineBreak.kt.after | 2 +- .../sortedByDescendingFirst.kt.after | 2 +- .../sortedByDescendingFirstOrNull.kt.after | 2 +- .../sortedByDescendingLast.kt.after | 2 +- .../sortedByDescendingLastOrNull.kt.after | 2 +- .../sortedByFirst.kt.after | 2 +- .../sortedByFirstOrNull.kt.after | 2 +- .../sortedByLast.kt.after | 2 +- .../sortedByLastOrNull.kt.after | 2 +- .../sortedDescendingFirst.kt.after | 2 +- .../sortedDescendingFirstOrNull.kt.after | 2 +- .../sortedDescendingLast.kt.after | 2 +- .../sortedDescendingLastOrNull.kt.after | 2 +- .../sortedFirst.kt.after | 2 +- .../sortedFirstOrNull.kt.after | 2 +- .../simplifiableCallChain/sortedLast.kt.after | 2 +- .../sortedLastOrNull.kt.after | 2 +- .../loopToCallChain/maxMin/KT14210.kt | 4 +- .../loopToCallChain/maxMin/KT14210.kt.after | 6 +- .../loopToCallChain/maxMin/KT14210.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/max1.kt | 4 +- .../loopToCallChain/maxMin/max1.kt.after | 6 +- .../loopToCallChain/maxMin/max1.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/max2.kt | 4 +- .../loopToCallChain/maxMin/max2.kt.after | 6 +- .../loopToCallChain/maxMin/max2.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/max3.kt | 4 +- .../loopToCallChain/maxMin/max3.kt.after | 6 +- .../loopToCallChain/maxMin/max3.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/max4.kt | 2 +- .../loopToCallChain/maxMin/max4.kt.after | 4 +- .../intentions/loopToCallChain/maxMin/max5.kt | 4 +- .../loopToCallChain/maxMin/max5.kt.after | 6 +- .../loopToCallChain/maxMin/max5.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/max6.kt | 4 +- .../loopToCallChain/maxMin/max6.kt.after | 6 +- .../loopToCallChain/maxMin/max6.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/max7.kt | 4 +- .../loopToCallChain/maxMin/max7.kt.after | 6 +- .../loopToCallChain/maxMin/max7.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/min1.kt | 4 +- .../loopToCallChain/maxMin/min1.kt.after | 6 +- .../loopToCallChain/maxMin/min1.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/min2.kt | 4 +- .../loopToCallChain/maxMin/min2.kt.after | 6 +- .../loopToCallChain/maxMin/min2.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/min3.kt | 4 +- .../loopToCallChain/maxMin/min3.kt.after | 6 +- .../loopToCallChain/maxMin/min3.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/min4.kt | 4 +- .../loopToCallChain/maxMin/min4.kt.after | 6 +- .../loopToCallChain/maxMin/min4.kt.after2 | 6 +- .../intentions/loopToCallChain/maxMin/min5.kt | 4 +- .../loopToCallChain/maxMin/min5.kt.after | 6 +- .../loopToCallChain/maxMin/min5.kt.after2 | 6 +- .../createFunction/call/kt10983.kt | 2 +- .../LocalInspectionTestGenerated.java | 30 --- .../testData/webDemoExamples2/life.kt | 2 +- .../stdlib/api/js-v1/kotlin.collections.kt | 188 +++++++++--------- .../stdlib/api/js-v1/kotlin.sequences.kt | 20 +- libraries/stdlib/api/js-v1/kotlin.text.kt | 12 +- libraries/stdlib/api/js/kotlin.collections.kt | 188 +++++++++--------- libraries/stdlib/api/js/kotlin.sequences.kt | 20 +- libraries/stdlib/api/js/kotlin.text.kt | 12 +- .../stdlib/common/src/generated/_Arrays.kt | 112 +++++------ .../common/src/generated/_Collections.kt | 20 +- .../stdlib/common/src/generated/_Maps.kt | 8 +- .../stdlib/common/src/generated/_Sequences.kt | 20 +- .../stdlib/common/src/generated/_Strings.kt | 12 +- .../stdlib/common/src/generated/_UArrays.kt | 48 ++--- .../src/templates/Aggregates.kt | 6 +- .../kotlin/nj2k/conversions/resolveUtil.kt | 2 +- 93 files changed, 476 insertions(+), 572 deletions(-) delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt.after delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt.after delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt.after delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt.after delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt.after delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt delete mode 100644 idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt.after diff --git a/compiler/testData/codegen/box/regressions/kt6434.kt b/compiler/testData/codegen/box/regressions/kt6434.kt index d89e12e6936..2dbcc3296bb 100644 --- a/compiler/testData/codegen/box/regressions/kt6434.kt +++ b/compiler/testData/codegen/box/regressions/kt6434.kt @@ -17,8 +17,8 @@ class C(val nums: Map) { private fun loadNormalizedNums(): Map { val vals = nums.values - val min = vals.min()!! - val max = vals.max()!! + val min = vals.minOrNull()!! + val max = vals.maxOrNull()!! val rangeDiff = (max - min).toFloat() val normalizedNums = nums.map { kvp -> val (e, num) = kvp diff --git a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/LookupElementFactory.kt b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/LookupElementFactory.kt index 03353c6ae52..828af36b479 100644 --- a/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/LookupElementFactory.kt +++ b/idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/LookupElementFactory.kt @@ -338,7 +338,7 @@ class LookupElementFactory( .minByOrNull { it.enum }?.let { return it } val overridden = descriptor.overriddenTreeUniqueAsSequence(useOriginal = false) - return overridden.map { callableWeightBasic(it, receiverTypes)!! }.minBy { it.enum }!! + return overridden.map { callableWeightBasic(it, receiverTypes)!! }.minByOrNull { it.enum }!! } return callableWeightBasic(descriptor, receiverTypes) diff --git a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractFileRankingTest.kt b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractFileRankingTest.kt index 8dab9588b3a..fd43d656615 100644 --- a/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractFileRankingTest.kt +++ b/idea/jvm-debugger/jvm-debugger-test/test/org/jetbrains/kotlin/idea/debugger/test/AbstractFileRankingTest.kt @@ -95,7 +95,7 @@ abstract class AbstractFileRankingTest : LowLevelDebuggerTestBase() { } } - val fileWithMaxScore = fileWithRankings.maxBy { it.value }!! + val fileWithMaxScore = fileWithRankings.maxByOrNull { it.value }!! val actualFile = fileWithMaxScore.key if (strictMode) { diff --git a/idea/jvm-debugger/jvm-debugger-util/src/org/jetbrains/kotlin/idea/debugger/FileRankingCalculator.kt b/idea/jvm-debugger/jvm-debugger-util/src/org/jetbrains/kotlin/idea/debugger/FileRankingCalculator.kt index ba5712cc09c..fe7bcf84cfe 100644 --- a/idea/jvm-debugger/jvm-debugger-util/src/org/jetbrains/kotlin/idea/debugger/FileRankingCalculator.kt +++ b/idea/jvm-debugger/jvm-debugger-util/src/org/jetbrains/kotlin/idea/debugger/FileRankingCalculator.kt @@ -42,7 +42,7 @@ abstract class FileRankingCalculator(private val checkClassFqName: Boolean = tru fun findMostAppropriateSource(files: Collection, location: Location): KtFile { val fileWithRankings: Map = rankFiles(files, location) - val fileWithMaxScore = fileWithRankings.maxBy { it.value }!! + val fileWithMaxScore = fileWithRankings.maxByOrNull { it.value }!! return fileWithMaxScore.key } diff --git a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/profilers/ProfilerHandler.kt b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/profilers/ProfilerHandler.kt index 1252870120c..a350e77956a 100644 --- a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/profilers/ProfilerHandler.kt +++ b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/profilers/ProfilerHandler.kt @@ -32,7 +32,7 @@ interface ProfilerHandler { fun determinePhasePath(dumpPath: Path, profilerConfig: ProfilerConfig): Path { val activityPath = dumpPath.parent.resolve(profilerConfig.path) val runNumber = - (activityPath.toFile().listFiles()?.maxBy { it.name.toIntOrNull() ?: 0 }?.name?.toIntOrNull() + (activityPath.toFile().listFiles()?.maxOfOrNull { it.name.toIntOrNull() ?: 0 } ?: 0) + 1 val runPath = activityPath.resolve("$runNumber") runPath.toFile().mkdirs() diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt index 85f5f564e8f..3cd56e14e86 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/collections/ConvertCallChainIntoSequenceInspection.kt @@ -277,9 +277,6 @@ internal val collectionTerminationFunctionNames = listOf( "mapIndexedTo", "mapNotNullTo", "mapTo", - "max", - "maxBy", - "maxWith", "maxOrNull", "maxByOrNull", "maxWithOrNull", @@ -287,9 +284,6 @@ internal val collectionTerminationFunctionNames = listOf( "maxOfOrNull", "maxOfWith", "maxOfWithOrNull", - "min", - "minBy", - "minWith", "minOrNull", "minByOrNull", "minWithOrNull", diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/collections/SimplifiableCallChainInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/collections/SimplifiableCallChainInspection.kt index 5a6c0689c85..39680e24bc0 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/collections/SimplifiableCallChainInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/collections/SimplifiableCallChainInspection.kt @@ -87,22 +87,22 @@ class SimplifiableCallChainInspection : AbstractCallChainChecker() { Conversion("kotlin.collections.filter", "kotlin.collections.singleOrNull", "singleOrNull"), Conversion("kotlin.collections.filter", "kotlin.collections.isNotEmpty", "any"), Conversion("kotlin.collections.filter", "kotlin.collections.List.isEmpty", "none"), - Conversion("kotlin.collections.sorted", "kotlin.collections.firstOrNull", "min"), - Conversion("kotlin.collections.sorted", "kotlin.collections.lastOrNull", "max"), - Conversion("kotlin.collections.sortedDescending", "kotlin.collections.firstOrNull", "max"), - Conversion("kotlin.collections.sortedDescending", "kotlin.collections.lastOrNull", "min"), - Conversion("kotlin.collections.sortedBy", "kotlin.collections.firstOrNull", "minBy"), - Conversion("kotlin.collections.sortedBy", "kotlin.collections.lastOrNull", "maxBy"), - Conversion("kotlin.collections.sortedByDescending", "kotlin.collections.firstOrNull", "maxBy"), - Conversion("kotlin.collections.sortedByDescending", "kotlin.collections.lastOrNull", "minBy"), - Conversion("kotlin.collections.sorted", "kotlin.collections.first", "min", withNotNullAssertion = true), - Conversion("kotlin.collections.sorted", "kotlin.collections.last", "max", withNotNullAssertion = true), - Conversion("kotlin.collections.sortedDescending", "kotlin.collections.first", "max", withNotNullAssertion = true), - Conversion("kotlin.collections.sortedDescending", "kotlin.collections.last", "min", withNotNullAssertion = true), - Conversion("kotlin.collections.sortedBy", "kotlin.collections.first", "minBy", withNotNullAssertion = true), - Conversion("kotlin.collections.sortedBy", "kotlin.collections.last", "maxBy", withNotNullAssertion = true), - Conversion("kotlin.collections.sortedByDescending", "kotlin.collections.first", "maxBy", withNotNullAssertion = true), - Conversion("kotlin.collections.sortedByDescending", "kotlin.collections.last", "minBy", withNotNullAssertion = true), + Conversion("kotlin.collections.sorted", "kotlin.collections.firstOrNull", "minOrNull"), + Conversion("kotlin.collections.sorted", "kotlin.collections.lastOrNull", "maxOrNull"), + Conversion("kotlin.collections.sortedDescending", "kotlin.collections.firstOrNull", "maxOrNull"), + Conversion("kotlin.collections.sortedDescending", "kotlin.collections.lastOrNull", "minOrNull"), + Conversion("kotlin.collections.sortedBy", "kotlin.collections.firstOrNull", "minByOrNull"), + Conversion("kotlin.collections.sortedBy", "kotlin.collections.lastOrNull", "maxByOrNull"), + Conversion("kotlin.collections.sortedByDescending", "kotlin.collections.firstOrNull", "maxByOrNull"), + Conversion("kotlin.collections.sortedByDescending", "kotlin.collections.lastOrNull", "minByOrNull"), + Conversion("kotlin.collections.sorted", "kotlin.collections.first", "minOrNull", withNotNullAssertion = true), + Conversion("kotlin.collections.sorted", "kotlin.collections.last", "maxOrNull", withNotNullAssertion = true), + Conversion("kotlin.collections.sortedDescending", "kotlin.collections.first", "maxOrNull", withNotNullAssertion = true), + Conversion("kotlin.collections.sortedDescending", "kotlin.collections.last", "minOrNull", withNotNullAssertion = true), + Conversion("kotlin.collections.sortedBy", "kotlin.collections.first", "minByOrNull", withNotNullAssertion = true), + Conversion("kotlin.collections.sortedBy", "kotlin.collections.last", "maxByOrNull", withNotNullAssertion = true), + Conversion("kotlin.collections.sortedByDescending", "kotlin.collections.first", "maxByOrNull", withNotNullAssertion = true), + Conversion("kotlin.collections.sortedByDescending", "kotlin.collections.last", "minByOrNull", withNotNullAssertion = true), Conversion("kotlin.text.filter", "kotlin.text.first", "first"), Conversion("kotlin.text.filter", "kotlin.text.firstOrNull", "firstOrNull"), diff --git a/idea/src/org/jetbrains/kotlin/idea/intentions/loopToCallChain/result/MaxOrMinTransformation.kt b/idea/src/org/jetbrains/kotlin/idea/intentions/loopToCallChain/result/MaxOrMinTransformation.kt index 0d79aa1ab52..0ac4ea764cc 100644 --- a/idea/src/org/jetbrains/kotlin/idea/intentions/loopToCallChain/result/MaxOrMinTransformation.kt +++ b/idea/src/org/jetbrains/kotlin/idea/intentions/loopToCallChain/result/MaxOrMinTransformation.kt @@ -18,7 +18,7 @@ class MaxOrMinTransformation( ) : AssignToVariableResultTransformation(loop, initialization) { override val presentation: String - get() = if (isMax) "max()" else "min()" + get() = if (isMax) "maxOrNull()" else "minOrNull()" override fun generateCode(chainedCallGenerator: ChainedCallGenerator): KtExpression { val call = chainedCallGenerator.generate(presentation) diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt deleted file mode 100644 index e152af388c0..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val max: Int? = list.filter { it > 1 }.max() -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt.after b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt.after deleted file mode 100644 index 6ad160a99b6..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt.after +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val max: Int? = list.asSequence().filter { it > 1 }.max() -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt deleted file mode 100644 index 1b74e45fa62..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val maxBy: Int? = list.filter { it > 1 }.maxBy { true } -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt.after b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt.after deleted file mode 100644 index 0112fae93c1..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt.after +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val maxBy: Int? = list.asSequence().filter { it > 1 }.maxBy { true } -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt deleted file mode 100644 index 5f6acdb36e4..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val maxWith: Int? = list.filter { it > 1 }.maxWith(Comparator { o1, o2 -> 0 }) -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt.after b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt.after deleted file mode 100644 index 441726c64c1..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt.after +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val maxWith: Int? = list.asSequence().filter { it > 1 }.maxWith(Comparator { o1, o2 -> 0 }) -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt deleted file mode 100644 index 3e3e672d4f5..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val min: Int? = list.filter { it > 1 }.min() -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt.after b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt.after deleted file mode 100644 index 30389533241..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt.after +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val min: Int? = list.asSequence().filter { it > 1 }.min() -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt deleted file mode 100644 index 0d3b08fe608..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val minBy: Int? = list.filter { it > 1 }.minBy { true } -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt.after b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt.after deleted file mode 100644 index 56ec242ebd3..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt.after +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val minBy: Int? = list.asSequence().filter { it > 1 }.minBy { true } -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt deleted file mode 100644 index 5f6acdb36e4..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val maxWith: Int? = list.filter { it > 1 }.maxWith(Comparator { o1, o2 -> 0 }) -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt.after b/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt.after deleted file mode 100644 index 441726c64c1..00000000000 --- a/idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt.after +++ /dev/null @@ -1,5 +0,0 @@ -// WITH_RUNTIME - -fun test(list: List) { - val maxWith: Int? = list.asSequence().filter { it > 1 }.maxWith(Comparator { o1, o2 -> 0 }) -} \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt b/idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt index 01fd7693326..86df98d0a7b 100644 --- a/idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt +++ b/idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt @@ -3,5 +3,5 @@ fun test(list: List) { list // comment .asSequence() - .max() + .maxOrNull() } \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt.after b/idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt.after index 2a3acec2fa8..435089c5022 100644 --- a/idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt.after +++ b/idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt.after @@ -2,5 +2,5 @@ fun test(list: List) { list // comment - .max() + .maxOrNull() } \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingFirst.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingFirst.kt.after index 61f13e55369..4d86fd96ef1 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingFirst.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingFirst.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x: Pair = listOf("a" to 1, "c" to 3, "b" to 2).maxBy { it.second }!! \ No newline at end of file +val x: Pair = listOf("a" to 1, "c" to 3, "b" to 2).maxByOrNull { it.second }!! \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingFirstOrNull.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingFirstOrNull.kt.after index 299ad1c1e8c..f3acb0b5bb1 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingFirstOrNull.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingFirstOrNull.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x = listOf("a" to 1, "c" to 3, "b" to 2).maxBy { it.second } \ No newline at end of file +val x = listOf("a" to 1, "c" to 3, "b" to 2).maxByOrNull { it.second } \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingLast.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingLast.kt.after index 4da94078adf..2ae01e03731 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingLast.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingLast.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x: Pair = listOf("a" to 1, "c" to 3, "b" to 2).minBy { it.second }!! \ No newline at end of file +val x: Pair = listOf("a" to 1, "c" to 3, "b" to 2).minByOrNull { it.second }!! \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingLastOrNull.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingLastOrNull.kt.after index ede4febf509..41f28e09fa9 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingLastOrNull.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByDescendingLastOrNull.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x = listOf("a" to 1, "c" to 3, "b" to 2).minBy { it.second } \ No newline at end of file +val x = listOf("a" to 1, "c" to 3, "b" to 2).minByOrNull { it.second } \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByFirst.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByFirst.kt.after index 4da94078adf..2ae01e03731 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByFirst.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByFirst.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x: Pair = listOf("a" to 1, "c" to 3, "b" to 2).minBy { it.second }!! \ No newline at end of file +val x: Pair = listOf("a" to 1, "c" to 3, "b" to 2).minByOrNull { it.second }!! \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByFirstOrNull.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByFirstOrNull.kt.after index ede4febf509..41f28e09fa9 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByFirstOrNull.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByFirstOrNull.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x = listOf("a" to 1, "c" to 3, "b" to 2).minBy { it.second } \ No newline at end of file +val x = listOf("a" to 1, "c" to 3, "b" to 2).minByOrNull { it.second } \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByLast.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByLast.kt.after index 61f13e55369..4d86fd96ef1 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByLast.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByLast.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x: Pair = listOf("a" to 1, "c" to 3, "b" to 2).maxBy { it.second }!! \ No newline at end of file +val x: Pair = listOf("a" to 1, "c" to 3, "b" to 2).maxByOrNull { it.second }!! \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByLastOrNull.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByLastOrNull.kt.after index 299ad1c1e8c..f3acb0b5bb1 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByLastOrNull.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedByLastOrNull.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x = listOf("a" to 1, "c" to 3, "b" to 2).maxBy { it.second } \ No newline at end of file +val x = listOf("a" to 1, "c" to 3, "b" to 2).maxByOrNull { it.second } \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingFirst.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingFirst.kt.after index 97d688a29ab..626b3431e94 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingFirst.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingFirst.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x: Int = listOf(1, 3, 2).max()!! \ No newline at end of file +val x: Int = listOf(1, 3, 2).maxOrNull()!! \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingFirstOrNull.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingFirstOrNull.kt.after index b38730ac958..8c1485ad0ac 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingFirstOrNull.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingFirstOrNull.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x = listOf(1, 3, 2).max() \ No newline at end of file +val x = listOf(1, 3, 2).maxOrNull() \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingLast.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingLast.kt.after index 3e18063c187..46b05112568 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingLast.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingLast.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x: Int = listOf(1, 3, 2).min()!! \ No newline at end of file +val x: Int = listOf(1, 3, 2).minOrNull()!! \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingLastOrNull.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingLastOrNull.kt.after index 9570199e3d1..8dad3f782cd 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingLastOrNull.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedDescendingLastOrNull.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x = listOf(1, 3, 2).min() \ No newline at end of file +val x = listOf(1, 3, 2).minOrNull() \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedFirst.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedFirst.kt.after index 3e18063c187..46b05112568 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedFirst.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedFirst.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x: Int = listOf(1, 3, 2).min()!! \ No newline at end of file +val x: Int = listOf(1, 3, 2).minOrNull()!! \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedFirstOrNull.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedFirstOrNull.kt.after index 9570199e3d1..8dad3f782cd 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedFirstOrNull.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedFirstOrNull.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x = listOf(1, 3, 2).min() \ No newline at end of file +val x = listOf(1, 3, 2).minOrNull() \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedLast.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedLast.kt.after index 97d688a29ab..626b3431e94 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedLast.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedLast.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x: Int = listOf(1, 3, 2).max()!! \ No newline at end of file +val x: Int = listOf(1, 3, 2).maxOrNull()!! \ No newline at end of file diff --git a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedLastOrNull.kt.after b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedLastOrNull.kt.after index b38730ac958..8c1485ad0ac 100644 --- a/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedLastOrNull.kt.after +++ b/idea/testData/inspectionsLocal/collections/simplifiableCallChain/sortedLastOrNull.kt.after @@ -1,2 +1,2 @@ // WITH_RUNTIME -val x = listOf(1, 3, 2).max() \ No newline at end of file +val x = listOf(1, 3, 2).maxOrNull() \ No newline at end of file diff --git a/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt b/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt index 3efb0b950a4..97c352e0f35 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'filter{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.max()'" +// INTENTION_TEXT: "Replace with 'filter{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.maxOrNull()'" fun f(list: List) { var result = -1 for (item in list) diff --git a/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt.after index 0762403e3a0..2d372111ebb 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt.after @@ -1,9 +1,9 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'filter{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.max()'" +// INTENTION_TEXT: "Replace with 'filter{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.maxOrNull()'" fun f(list: List) { val result = list .filter { it % 2 == 0 } - .max() + .maxOrNull() ?: -1 } \ No newline at end of file diff --git a/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt.after2 index a19476ea394..749703422ed 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/KT14210.kt.after2 @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'filter{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.max()'" +// INTENTION_TEXT: "Replace with 'filter{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().filter{}.maxOrNull()'" fun f(list: List) { val result = list .asSequence() .filter { it % 2 == 0 } - .max() + .maxOrNull() ?: -1 } \ No newline at end of file diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max1.kt b/idea/testData/intentions/loopToCallChain/maxMin/max1.kt index f6f9a39fc8f..dcfe7957ec8 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max1.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/max1.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { var max_width = 0.0f for (i in 0..lineCount - 1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max1.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/max1.kt.after index a77fa2ad82f..59bef4fdfe9 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max1.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/max1.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { val max_width = (0..lineCount - 1) .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0f return max_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max1.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/max1.kt.after2 index a99b31b10ea..7b38de003d2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max1.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/max1.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { val max_width = (0..lineCount - 1) .asSequence() .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0f return max_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max2.kt b/idea/testData/intentions/loopToCallChain/maxMin/max2.kt index 19039e82991..7eae6908f20 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max2.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/max2.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { var max_width = 0.0f for (i in 0..lineCount - 1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max2.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/max2.kt.after index a77fa2ad82f..59bef4fdfe9 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max2.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/max2.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { val max_width = (0..lineCount - 1) .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0f return max_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max2.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/max2.kt.after2 index a99b31b10ea..7b38de003d2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max2.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/max2.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { val max_width = (0..lineCount - 1) .asSequence() .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0f return max_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max3.kt b/idea/testData/intentions/loopToCallChain/maxMin/max3.kt index 778bc78f294..8717895571f 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max3.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/max3.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { var max_width = 0.0f for (i in 0..lineCount - 1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max3.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/max3.kt.after index a77fa2ad82f..59bef4fdfe9 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max3.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/max3.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { val max_width = (0..lineCount - 1) .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0f return max_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max3.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/max3.kt.after2 index a99b31b10ea..7b38de003d2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max3.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/max3.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(lineCount: Int): Float { val max_width = (0..lineCount - 1) .asSequence() .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0f return max_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max4.kt b/idea/testData/intentions/loopToCallChain/maxMin/max4.kt index 22cf6eaf743..ecc985be938 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max4.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/max4.kt @@ -1,5 +1,5 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'max()'" +// INTENTION_TEXT: "Replace with 'maxOrNull()'" // IS_APPLICABLE_2: false fun getMaxLineWidth(list: List): Float { var max = 0.0f diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max4.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/max4.kt.after index c364c2ccc6c..fc686fdb367 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max4.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/max4.kt.after @@ -1,8 +1,8 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'max()'" +// INTENTION_TEXT: "Replace with 'maxOrNull()'" // IS_APPLICABLE_2: false fun getMaxLineWidth(list: List): Float { - val max = list.max() + val max = list.maxOrNull() ?: 0.0f return max } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max5.kt b/idea/testData/intentions/loopToCallChain/maxMin/max5.kt index 60dabc98816..b9c74551ac7 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max5.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/max5.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(count: Int): Double { var max = 0.0 for (i in 0..count-1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max5.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/max5.kt.after index 3cf93eeb1f0..01b8842355d 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max5.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/max5.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(count: Int): Double { val max = (0..count-1) .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0 return max } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max5.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/max5.kt.after2 index 0e1a0a0503a..ed6675a2068 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max5.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/max5.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" fun getMaxLineWidth(count: Int): Double { val max = (0..count-1) .asSequence() .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0 return max } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max6.kt b/idea/testData/intentions/loopToCallChain/maxMin/max6.kt index efb68ce2922..76079dc4891 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max6.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/max6.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'mapIndexed{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.max()'" +// INTENTION_TEXT: "Replace with 'mapIndexed{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.maxOrNull()'" fun getMaxLineWidth(list: List): Double { var max = 0.0 for ((i, item) in list.withIndex()) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max6.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/max6.kt.after index 42722097694..894d6de6c65 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max6.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/max6.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'mapIndexed{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.max()'" +// INTENTION_TEXT: "Replace with 'mapIndexed{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.maxOrNull()'" fun getMaxLineWidth(list: List): Double { val max = list .mapIndexed { i, item -> item * i } - .max() + .maxOrNull() ?: 0.0 return max } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max6.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/max6.kt.after2 index f22ecd7e3f0..bc022f8f3f2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max6.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/max6.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'mapIndexed{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.max()'" +// INTENTION_TEXT: "Replace with 'mapIndexed{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().mapIndexed{}.maxOrNull()'" fun getMaxLineWidth(list: List): Double { val max = list .asSequence() .mapIndexed { i, item -> item * i } - .max() + .maxOrNull() ?: 0.0 return max } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max7.kt b/idea/testData/intentions/loopToCallChain/maxMin/max7.kt index 753af0e7062..cbac6362332 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max7.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/max7.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" import java.lang.Math.max fun getMaxLineWidth(count: Int): Double { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max7.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/max7.kt.after index 3fef9ca989a..219f6e0c561 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max7.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/max7.kt.after @@ -1,12 +1,12 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" import java.lang.Math.max fun getMaxLineWidth(count: Int): Double { val m = (0..count-1) .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0 return m } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/max7.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/max7.kt.after2 index 39056ec15dd..792e1a863a2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/max7.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/max7.kt.after2 @@ -1,13 +1,13 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.max()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.max()'" +// INTENTION_TEXT: "Replace with 'map{}.maxOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.maxOrNull()'" import java.lang.Math.max fun getMaxLineWidth(count: Int): Double { val m = (0..count-1) .asSequence() .map { getLineWidth(it) } - .max() + .maxOrNull() ?: 0.0 return m } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min1.kt b/idea/testData/intentions/loopToCallChain/maxMin/min1.kt index 528a8f0fff2..ea0ae803279 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min1.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/min1.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { var min_width = Double.MAX_VALUE for (i in 0..lineCount - 1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min1.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/min1.kt.after index 24cf4e3ee72..e2c0ab3c395 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min1.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/min1.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min1.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/min1.kt.after2 index 196b6c13a67..4055a849de2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min1.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/min1.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .asSequence() .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min2.kt b/idea/testData/intentions/loopToCallChain/maxMin/min2.kt index de250a9f7fd..006abccdf5c 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min2.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/min2.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { var min_width = Double.MAX_VALUE for (i in 0..lineCount - 1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min2.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/min2.kt.after index 24cf4e3ee72..e2c0ab3c395 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min2.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/min2.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min2.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/min2.kt.after2 index 196b6c13a67..4055a849de2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min2.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/min2.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .asSequence() .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min3.kt b/idea/testData/intentions/loopToCallChain/maxMin/min3.kt index f5817d44e03..2b43c964154 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min3.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/min3.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { var min_width = Double.MAX_VALUE for (i in 0..lineCount - 1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min3.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/min3.kt.after index 24cf4e3ee72..e2c0ab3c395 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min3.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/min3.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min3.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/min3.kt.after2 index 196b6c13a67..4055a849de2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min3.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/min3.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .asSequence() .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min4.kt b/idea/testData/intentions/loopToCallChain/maxMin/min4.kt index 8dd25efb4b5..d891f6f044e 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min4.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/min4.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { var min_width = Double.MAX_VALUE for (i in 0..lineCount - 1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min4.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/min4.kt.after index 24cf4e3ee72..e2c0ab3c395 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min4.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/min4.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min4.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/min4.kt.after2 index 196b6c13a67..4055a849de2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min4.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/min4.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .asSequence() .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min5.kt b/idea/testData/intentions/loopToCallChain/maxMin/min5.kt index 7f32fec1106..2c4ee08b93c 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min5.kt +++ b/idea/testData/intentions/loopToCallChain/maxMin/min5.kt @@ -1,6 +1,6 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { var min_width = Double.MAX_VALUE for (i in 0..lineCount - 1) { diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min5.kt.after b/idea/testData/intentions/loopToCallChain/maxMin/min5.kt.after index 24cf4e3ee72..e2c0ab3c395 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min5.kt.after +++ b/idea/testData/intentions/loopToCallChain/maxMin/min5.kt.after @@ -1,10 +1,10 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/intentions/loopToCallChain/maxMin/min5.kt.after2 b/idea/testData/intentions/loopToCallChain/maxMin/min5.kt.after2 index 196b6c13a67..4055a849de2 100644 --- a/idea/testData/intentions/loopToCallChain/maxMin/min5.kt.after2 +++ b/idea/testData/intentions/loopToCallChain/maxMin/min5.kt.after2 @@ -1,11 +1,11 @@ // WITH_RUNTIME -// INTENTION_TEXT: "Replace with 'map{}.min()'" -// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'" +// INTENTION_TEXT: "Replace with 'map{}.minOrNull()'" +// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.minOrNull()'" fun getMinLineWidth(lineCount: Int): Double { val min_width = (0..lineCount - 1) .asSequence() .map { getLineWidth(it) } - .min() + .minOrNull() ?: Double.MAX_VALUE return min_width } diff --git a/idea/testData/quickfix/createFromUsage/createFunction/call/kt10983.kt b/idea/testData/quickfix/createFromUsage/createFunction/call/kt10983.kt index 1e526823c30..7816a79ec1e 100644 --- a/idea/testData/quickfix/createFromUsage/createFunction/call/kt10983.kt +++ b/idea/testData/quickfix/createFromUsage/createFunction/call/kt10983.kt @@ -18,6 +18,6 @@ fun doSomethingStrangeWithCollection(collection: Collection): Collection? { val groupsByLength = collection.groupBy { s -> { s.length } } - val maximumSizeOfGroup = groupsByLength.values.maxBy { it.size }. + val maximumSizeOfGroup = groupsByLength.values.maxByOrNull { it.size }. return groupsByLength.values.firstOrNull { group -> {group.size == maximumSizeOfGroup} } } diff --git a/idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java b/idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java index d3be06f5ced..9f282f373b3 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java +++ b/idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java @@ -1373,16 +1373,6 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest { runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/mapTo.kt"); } - @TestMetadata("max.kt") - public void testMax() throws Exception { - runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/max.kt"); - } - - @TestMetadata("maxBy.kt") - public void testMaxBy() throws Exception { - runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxBy.kt"); - } - @TestMetadata("maxByOrNull.kt") public void testMaxByOrNull() throws Exception { runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxByOrNull.kt"); @@ -1413,26 +1403,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest { runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxOrNull.kt"); } - @TestMetadata("maxWith.kt") - public void testMaxWith() throws Exception { - runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWith.kt"); - } - @TestMetadata("maxWithOrNull.kt") public void testMaxWithOrNull() throws Exception { runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/maxWithOrNull.kt"); } - @TestMetadata("min.kt") - public void testMin() throws Exception { - runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/min.kt"); - } - - @TestMetadata("minBy.kt") - public void testMinBy() throws Exception { - runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minBy.kt"); - } - @TestMetadata("minByOrNull.kt") public void testMinByOrNull() throws Exception { runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minByOrNull.kt"); @@ -1463,11 +1438,6 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest { runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minOrNull.kt"); } - @TestMetadata("minWith.kt") - public void testMinWith() throws Exception { - runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWith.kt"); - } - @TestMetadata("minWithOrNull.kt") public void testMinWithOrNull() throws Exception { runTest("idea/testData/inspectionsLocal/collections/convertCallChainIntoSequence/termination/minWithOrNull.kt"); diff --git a/js/js.translator/testData/webDemoExamples2/life.kt b/js/js.translator/testData/webDemoExamples2/life.kt index fbe414bef1e..124c5a92788 100644 --- a/js/js.translator/testData/webDemoExamples2/life.kt +++ b/js/js.translator/testData/webDemoExamples2/life.kt @@ -120,7 +120,7 @@ fun printField(s: String, steps: Int) { fun makeField(s: String): Field { val lines: List = s.split("\n") - val w = lines.map { it.length }.max()!! + val w = lines.maxOf { it.length } val data = Array(lines.size) { Array(w) { false } } // workaround diff --git a/libraries/stdlib/api/js-v1/kotlin.collections.kt b/libraries/stdlib/api/js-v1/kotlin.collections.kt index 5468afa224f..5386dedee7b 100644 --- a/libraries/stdlib/api/js-v1/kotlin.collections.kt +++ b/libraries/stdlib/api/js-v1/kotlin.collections.kt @@ -4184,155 +4184,155 @@ public inline fun kotlin.collections.Map.mapValues(transform public inline fun > kotlin.collections.Map.mapValuesTo(destination: M, transform: (kotlin.collections.Map.Entry) -> R): M @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.Array.max(): T? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.Array.max(): kotlin.Double? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.Array.max(): kotlin.Float? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ByteArray.max(): kotlin.Byte? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharArray.max(): kotlin.Char? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.DoubleArray.max(): kotlin.Double? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.FloatArray.max(): kotlin.Float? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.IntArray.max(): kotlin.Int? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.LongArray.max(): kotlin.Long? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ShortArray.max(): kotlin.Short? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.max(): kotlin.UByte? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.max(): kotlin.UInt? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.max(): kotlin.ULong? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.max(): kotlin.UShort? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.collections.Iterable.max(): T? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.collections.Iterable.max(): kotlin.Double? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.collections.Iterable.max(): kotlin.Float? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.Array.maxBy(selector: (T) -> R): T? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.BooleanArray.maxBy(selector: (kotlin.Boolean) -> R): kotlin.Boolean? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.ByteArray.maxBy(selector: (kotlin.Byte) -> R): kotlin.Byte? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.CharArray.maxBy(selector: (kotlin.Char) -> R): kotlin.Char? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.DoubleArray.maxBy(selector: (kotlin.Double) -> R): kotlin.Double? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.FloatArray.maxBy(selector: (kotlin.Float) -> R): kotlin.Float? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.IntArray.maxBy(selector: (kotlin.Int) -> R): kotlin.Int? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.LongArray.maxBy(selector: (kotlin.Long) -> R): kotlin.Long? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.ShortArray.maxBy(selector: (kotlin.Short) -> R): kotlin.Short? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UByteArray.maxBy(selector: (kotlin.UByte) -> R): kotlin.UByte? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UIntArray.maxBy(selector: (kotlin.UInt) -> R): kotlin.UInt? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.ULongArray.maxBy(selector: (kotlin.ULong) -> R): kotlin.ULong? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UShortArray.maxBy(selector: (kotlin.UShort) -> R): kotlin.UShort? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.collections.Iterable.maxBy(selector: (T) -> R): T? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.internal.InlineOnly public inline fun > kotlin.collections.Map.maxBy(selector: (kotlin.collections.Map.Entry) -> R): kotlin.collections.Map.Entry? @@ -5078,71 +5078,71 @@ public fun kotlin.collections.Iterable.maxOrNull(): kotlin.Double public fun kotlin.collections.Iterable.maxOrNull(): kotlin.Float? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.Array.maxWith(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.BooleanArray.maxWith(comparator: kotlin.Comparator): kotlin.Boolean? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ByteArray.maxWith(comparator: kotlin.Comparator): kotlin.Byte? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharArray.maxWith(comparator: kotlin.Comparator): kotlin.Char? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.DoubleArray.maxWith(comparator: kotlin.Comparator): kotlin.Double? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.FloatArray.maxWith(comparator: kotlin.Comparator): kotlin.Float? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.IntArray.maxWith(comparator: kotlin.Comparator): kotlin.Int? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.LongArray.maxWith(comparator: kotlin.Comparator): kotlin.Long? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ShortArray.maxWith(comparator: kotlin.Comparator): kotlin.Short? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.maxWith(comparator: kotlin.Comparator): kotlin.UByte? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.maxWith(comparator: kotlin.Comparator): kotlin.UInt? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.maxWith(comparator: kotlin.Comparator): kotlin.ULong? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.maxWith(comparator: kotlin.Comparator): kotlin.UShort? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.collections.Iterable.maxWith(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.internal.InlineOnly public inline fun kotlin.collections.Map.maxWith(comparator: kotlin.Comparator>): kotlin.collections.Map.Entry? @@ -5197,155 +5197,155 @@ public fun kotlin.collections.Iterable.maxWithOrNull(comparator: kotlin.C public inline fun kotlin.collections.Map.maxWithOrNull(comparator: kotlin.Comparator>): kotlin.collections.Map.Entry? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.Array.min(): T? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.Array.min(): kotlin.Double? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.Array.min(): kotlin.Float? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ByteArray.min(): kotlin.Byte? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharArray.min(): kotlin.Char? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.DoubleArray.min(): kotlin.Double? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.FloatArray.min(): kotlin.Float? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.IntArray.min(): kotlin.Int? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.LongArray.min(): kotlin.Long? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ShortArray.min(): kotlin.Short? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.min(): kotlin.UByte? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.min(): kotlin.UInt? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.min(): kotlin.ULong? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.min(): kotlin.UShort? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.collections.Iterable.min(): T? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.collections.Iterable.min(): kotlin.Double? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.collections.Iterable.min(): kotlin.Float? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.Array.minBy(selector: (T) -> R): T? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.BooleanArray.minBy(selector: (kotlin.Boolean) -> R): kotlin.Boolean? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.ByteArray.minBy(selector: (kotlin.Byte) -> R): kotlin.Byte? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.CharArray.minBy(selector: (kotlin.Char) -> R): kotlin.Char? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.DoubleArray.minBy(selector: (kotlin.Double) -> R): kotlin.Double? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.FloatArray.minBy(selector: (kotlin.Float) -> R): kotlin.Float? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.IntArray.minBy(selector: (kotlin.Int) -> R): kotlin.Int? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.LongArray.minBy(selector: (kotlin.Long) -> R): kotlin.Long? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.ShortArray.minBy(selector: (kotlin.Short) -> R): kotlin.Short? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UByteArray.minBy(selector: (kotlin.UByte) -> R): kotlin.UByte? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UIntArray.minBy(selector: (kotlin.UInt) -> R): kotlin.UInt? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.ULongArray.minBy(selector: (kotlin.ULong) -> R): kotlin.ULong? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UShortArray.minBy(selector: (kotlin.UShort) -> R): kotlin.UShort? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.collections.Iterable.minBy(selector: (T) -> R): T? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.collections.Map.minBy(selector: (kotlin.collections.Map.Entry) -> R): kotlin.collections.Map.Entry? @kotlin.SinceKotlin(version = "1.4") @@ -6090,71 +6090,71 @@ public fun kotlin.collections.Iterable.minOrNull(): kotlin.Double public fun kotlin.collections.Iterable.minOrNull(): kotlin.Float? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.Array.minWith(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.BooleanArray.minWith(comparator: kotlin.Comparator): kotlin.Boolean? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ByteArray.minWith(comparator: kotlin.Comparator): kotlin.Byte? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharArray.minWith(comparator: kotlin.Comparator): kotlin.Char? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.DoubleArray.minWith(comparator: kotlin.Comparator): kotlin.Double? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.FloatArray.minWith(comparator: kotlin.Comparator): kotlin.Float? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.IntArray.minWith(comparator: kotlin.Comparator): kotlin.Int? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.LongArray.minWith(comparator: kotlin.Comparator): kotlin.Long? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ShortArray.minWith(comparator: kotlin.Comparator): kotlin.Short? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.minWith(comparator: kotlin.Comparator): kotlin.UByte? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.minWith(comparator: kotlin.Comparator): kotlin.UInt? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.minWith(comparator: kotlin.Comparator): kotlin.ULong? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.minWith(comparator: kotlin.Comparator): kotlin.UShort? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.collections.Iterable.minWith(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.collections.Map.minWith(comparator: kotlin.Comparator>): kotlin.collections.Map.Entry? @kotlin.SinceKotlin(version = "1.4") diff --git a/libraries/stdlib/api/js-v1/kotlin.sequences.kt b/libraries/stdlib/api/js-v1/kotlin.sequences.kt index 911c8e962bf..e4c1a4fbbc6 100644 --- a/libraries/stdlib/api/js-v1/kotlin.sequences.kt +++ b/libraries/stdlib/api/js-v1/kotlin.sequences.kt @@ -254,21 +254,21 @@ public inline fun > kotlin.sequences.Sequence.mapTo(destination: C, transform: (T) -> R): C @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.sequences.Sequence.max(): T? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.sequences.Sequence.max(): kotlin.Double? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.sequences.Sequence.max(): kotlin.Float? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.sequences.Sequence.maxBy(selector: (T) -> R): T? @kotlin.SinceKotlin(version = "1.4") @@ -324,28 +324,28 @@ public fun kotlin.sequences.Sequence.maxOrNull(): kotlin.Double? public fun kotlin.sequences.Sequence.maxOrNull(): kotlin.Float? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.sequences.Sequence.maxWith(comparator: kotlin.Comparator): T? @kotlin.SinceKotlin(version = "1.4") public fun kotlin.sequences.Sequence.maxWithOrNull(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.sequences.Sequence.min(): T? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.sequences.Sequence.min(): kotlin.Double? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.sequences.Sequence.min(): kotlin.Float? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.sequences.Sequence.minBy(selector: (T) -> R): T? @kotlin.SinceKotlin(version = "1.4") @@ -401,7 +401,7 @@ public fun kotlin.sequences.Sequence.minOrNull(): kotlin.Double? public fun kotlin.sequences.Sequence.minOrNull(): kotlin.Float? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.sequences.Sequence.minWith(comparator: kotlin.Comparator): T? @kotlin.SinceKotlin(version = "1.4") diff --git a/libraries/stdlib/api/js-v1/kotlin.text.kt b/libraries/stdlib/api/js-v1/kotlin.text.kt index a9234d26dab..e41a15d5417 100644 --- a/libraries/stdlib/api/js-v1/kotlin.text.kt +++ b/libraries/stdlib/api/js-v1/kotlin.text.kt @@ -489,11 +489,11 @@ public inline infix fun kotlin.CharSequence.matches(regex: kotlin.text.Regex): k public fun kotlin.String.matches(regex: kotlin.String): kotlin.Boolean @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharSequence.max(): kotlin.Char? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.CharSequence.maxBy(selector: (kotlin.Char) -> R): kotlin.Char? @kotlin.SinceKotlin(version = "1.4") @@ -543,18 +543,18 @@ public inline fun kotlin.CharSequence.maxOfWithOrNull(comparator: kotlin.Com public fun kotlin.CharSequence.maxOrNull(): kotlin.Char? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharSequence.maxWith(comparator: kotlin.Comparator): kotlin.Char? @kotlin.SinceKotlin(version = "1.4") public fun kotlin.CharSequence.maxWithOrNull(comparator: kotlin.Comparator): kotlin.Char? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharSequence.min(): kotlin.Char? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.CharSequence.minBy(selector: (kotlin.Char) -> R): kotlin.Char? @kotlin.SinceKotlin(version = "1.4") @@ -604,7 +604,7 @@ public inline fun kotlin.CharSequence.minOfWithOrNull(comparator: kotlin.Com public fun kotlin.CharSequence.minOrNull(): kotlin.Char? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharSequence.minWith(comparator: kotlin.Comparator): kotlin.Char? @kotlin.SinceKotlin(version = "1.4") diff --git a/libraries/stdlib/api/js/kotlin.collections.kt b/libraries/stdlib/api/js/kotlin.collections.kt index 33b5f7a629a..a5b70324c6d 100644 --- a/libraries/stdlib/api/js/kotlin.collections.kt +++ b/libraries/stdlib/api/js/kotlin.collections.kt @@ -4154,155 +4154,155 @@ public inline fun kotlin.collections.Map.mapValues(transform public inline fun > kotlin.collections.Map.mapValuesTo(destination: M, transform: (kotlin.collections.Map.Entry) -> R): M @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.Array.max(): T? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.Array.max(): kotlin.Double? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.Array.max(): kotlin.Float? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ByteArray.max(): kotlin.Byte? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharArray.max(): kotlin.Char? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.DoubleArray.max(): kotlin.Double? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.FloatArray.max(): kotlin.Float? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.IntArray.max(): kotlin.Int? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.LongArray.max(): kotlin.Long? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ShortArray.max(): kotlin.Short? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.max(): kotlin.UByte? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.max(): kotlin.UInt? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.max(): kotlin.ULong? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.max(): kotlin.UShort? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.collections.Iterable.max(): T? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.collections.Iterable.max(): kotlin.Double? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.collections.Iterable.max(): kotlin.Float? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.Array.maxBy(selector: (T) -> R): T? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.BooleanArray.maxBy(selector: (kotlin.Boolean) -> R): kotlin.Boolean? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.ByteArray.maxBy(selector: (kotlin.Byte) -> R): kotlin.Byte? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.CharArray.maxBy(selector: (kotlin.Char) -> R): kotlin.Char? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.DoubleArray.maxBy(selector: (kotlin.Double) -> R): kotlin.Double? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.FloatArray.maxBy(selector: (kotlin.Float) -> R): kotlin.Float? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.IntArray.maxBy(selector: (kotlin.Int) -> R): kotlin.Int? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.LongArray.maxBy(selector: (kotlin.Long) -> R): kotlin.Long? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.ShortArray.maxBy(selector: (kotlin.Short) -> R): kotlin.Short? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UByteArray.maxBy(selector: (kotlin.UByte) -> R): kotlin.UByte? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UIntArray.maxBy(selector: (kotlin.UInt) -> R): kotlin.UInt? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.ULongArray.maxBy(selector: (kotlin.ULong) -> R): kotlin.ULong? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UShortArray.maxBy(selector: (kotlin.UShort) -> R): kotlin.UShort? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.collections.Iterable.maxBy(selector: (T) -> R): T? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.internal.InlineOnly public inline fun > kotlin.collections.Map.maxBy(selector: (kotlin.collections.Map.Entry) -> R): kotlin.collections.Map.Entry? @@ -5048,71 +5048,71 @@ public fun kotlin.collections.Iterable.maxOrNull(): kotlin.Double public fun kotlin.collections.Iterable.maxOrNull(): kotlin.Float? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.Array.maxWith(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.BooleanArray.maxWith(comparator: kotlin.Comparator): kotlin.Boolean? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ByteArray.maxWith(comparator: kotlin.Comparator): kotlin.Byte? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharArray.maxWith(comparator: kotlin.Comparator): kotlin.Char? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.DoubleArray.maxWith(comparator: kotlin.Comparator): kotlin.Double? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.FloatArray.maxWith(comparator: kotlin.Comparator): kotlin.Float? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.IntArray.maxWith(comparator: kotlin.Comparator): kotlin.Int? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.LongArray.maxWith(comparator: kotlin.Comparator): kotlin.Long? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ShortArray.maxWith(comparator: kotlin.Comparator): kotlin.Short? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.maxWith(comparator: kotlin.Comparator): kotlin.UByte? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.maxWith(comparator: kotlin.Comparator): kotlin.UInt? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.maxWith(comparator: kotlin.Comparator): kotlin.ULong? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.maxWith(comparator: kotlin.Comparator): kotlin.UShort? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.collections.Iterable.maxWith(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.internal.InlineOnly public inline fun kotlin.collections.Map.maxWith(comparator: kotlin.Comparator>): kotlin.collections.Map.Entry? @@ -5167,155 +5167,155 @@ public fun kotlin.collections.Iterable.maxWithOrNull(comparator: kotlin.C public inline fun kotlin.collections.Map.maxWithOrNull(comparator: kotlin.Comparator>): kotlin.collections.Map.Entry? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.Array.min(): T? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.Array.min(): kotlin.Double? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.Array.min(): kotlin.Float? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ByteArray.min(): kotlin.Byte? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharArray.min(): kotlin.Char? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.DoubleArray.min(): kotlin.Double? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.FloatArray.min(): kotlin.Float? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.IntArray.min(): kotlin.Int? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.LongArray.min(): kotlin.Long? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ShortArray.min(): kotlin.Short? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.min(): kotlin.UByte? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.min(): kotlin.UInt? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.min(): kotlin.ULong? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.min(): kotlin.UShort? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.collections.Iterable.min(): T? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.collections.Iterable.min(): kotlin.Double? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.collections.Iterable.min(): kotlin.Float? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.Array.minBy(selector: (T) -> R): T? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.BooleanArray.minBy(selector: (kotlin.Boolean) -> R): kotlin.Boolean? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.ByteArray.minBy(selector: (kotlin.Byte) -> R): kotlin.Byte? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.CharArray.minBy(selector: (kotlin.Char) -> R): kotlin.Char? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.DoubleArray.minBy(selector: (kotlin.Double) -> R): kotlin.Double? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.FloatArray.minBy(selector: (kotlin.Float) -> R): kotlin.Float? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.IntArray.minBy(selector: (kotlin.Int) -> R): kotlin.Int? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.LongArray.minBy(selector: (kotlin.Long) -> R): kotlin.Long? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.ShortArray.minBy(selector: (kotlin.Short) -> R): kotlin.Short? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UByteArray.minBy(selector: (kotlin.UByte) -> R): kotlin.UByte? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UIntArray.minBy(selector: (kotlin.UInt) -> R): kotlin.UInt? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.ULongArray.minBy(selector: (kotlin.ULong) -> R): kotlin.ULong? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes @kotlin.internal.InlineOnly public inline fun > kotlin.UShortArray.minBy(selector: (kotlin.UShort) -> R): kotlin.UShort? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.collections.Iterable.minBy(selector: (T) -> R): T? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.collections.Map.minBy(selector: (kotlin.collections.Map.Entry) -> R): kotlin.collections.Map.Entry? @kotlin.SinceKotlin(version = "1.4") @@ -6060,71 +6060,71 @@ public fun kotlin.collections.Iterable.minOrNull(): kotlin.Double public fun kotlin.collections.Iterable.minOrNull(): kotlin.Float? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.Array.minWith(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.BooleanArray.minWith(comparator: kotlin.Comparator): kotlin.Boolean? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ByteArray.minWith(comparator: kotlin.Comparator): kotlin.Byte? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharArray.minWith(comparator: kotlin.Comparator): kotlin.Char? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.DoubleArray.minWith(comparator: kotlin.Comparator): kotlin.Double? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.FloatArray.minWith(comparator: kotlin.Comparator): kotlin.Float? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.IntArray.minWith(comparator: kotlin.Comparator): kotlin.Int? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.LongArray.minWith(comparator: kotlin.Comparator): kotlin.Long? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.ShortArray.minWith(comparator: kotlin.Comparator): kotlin.Short? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.minWith(comparator: kotlin.Comparator): kotlin.UByte? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.minWith(comparator: kotlin.Comparator): kotlin.UInt? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.minWith(comparator: kotlin.Comparator): kotlin.ULong? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.3") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.minWith(comparator: kotlin.Comparator): kotlin.UShort? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.collections.Iterable.minWith(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.collections.Map.minWith(comparator: kotlin.Comparator>): kotlin.collections.Map.Entry? @kotlin.SinceKotlin(version = "1.4") diff --git a/libraries/stdlib/api/js/kotlin.sequences.kt b/libraries/stdlib/api/js/kotlin.sequences.kt index 911c8e962bf..e4c1a4fbbc6 100644 --- a/libraries/stdlib/api/js/kotlin.sequences.kt +++ b/libraries/stdlib/api/js/kotlin.sequences.kt @@ -254,21 +254,21 @@ public inline fun > kotlin.sequences.Sequence.mapTo(destination: C, transform: (T) -> R): C @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.sequences.Sequence.max(): T? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.sequences.Sequence.max(): kotlin.Double? @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.sequences.Sequence.max(): kotlin.Float? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.sequences.Sequence.maxBy(selector: (T) -> R): T? @kotlin.SinceKotlin(version = "1.4") @@ -324,28 +324,28 @@ public fun kotlin.sequences.Sequence.maxOrNull(): kotlin.Double? public fun kotlin.sequences.Sequence.maxOrNull(): kotlin.Float? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.sequences.Sequence.maxWith(comparator: kotlin.Comparator): T? @kotlin.SinceKotlin(version = "1.4") public fun kotlin.sequences.Sequence.maxWithOrNull(comparator: kotlin.Comparator): T? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun > kotlin.sequences.Sequence.min(): T? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.sequences.Sequence.min(): kotlin.Double? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") @kotlin.SinceKotlin(version = "1.1") public fun kotlin.sequences.Sequence.min(): kotlin.Float? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.sequences.Sequence.minBy(selector: (T) -> R): T? @kotlin.SinceKotlin(version = "1.4") @@ -401,7 +401,7 @@ public fun kotlin.sequences.Sequence.minOrNull(): kotlin.Double? public fun kotlin.sequences.Sequence.minOrNull(): kotlin.Float? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.sequences.Sequence.minWith(comparator: kotlin.Comparator): T? @kotlin.SinceKotlin(version = "1.4") diff --git a/libraries/stdlib/api/js/kotlin.text.kt b/libraries/stdlib/api/js/kotlin.text.kt index a9234d26dab..e41a15d5417 100644 --- a/libraries/stdlib/api/js/kotlin.text.kt +++ b/libraries/stdlib/api/js/kotlin.text.kt @@ -489,11 +489,11 @@ public inline infix fun kotlin.CharSequence.matches(regex: kotlin.text.Regex): k public fun kotlin.String.matches(regex: kotlin.String): kotlin.Boolean @kotlin.Deprecated(message = "Use maxOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharSequence.max(): kotlin.Char? @kotlin.Deprecated(message = "Use maxByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.CharSequence.maxBy(selector: (kotlin.Char) -> R): kotlin.Char? @kotlin.SinceKotlin(version = "1.4") @@ -543,18 +543,18 @@ public inline fun kotlin.CharSequence.maxOfWithOrNull(comparator: kotlin.Com public fun kotlin.CharSequence.maxOrNull(): kotlin.Char? @kotlin.Deprecated(message = "Use maxWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharSequence.maxWith(comparator: kotlin.Comparator): kotlin.Char? @kotlin.SinceKotlin(version = "1.4") public fun kotlin.CharSequence.maxWithOrNull(comparator: kotlin.Comparator): kotlin.Char? @kotlin.Deprecated(message = "Use minOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minOrNull()", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharSequence.min(): kotlin.Char? @kotlin.Deprecated(message = "Use minByOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minByOrNull(selector)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public inline fun > kotlin.CharSequence.minBy(selector: (kotlin.Char) -> R): kotlin.Char? @kotlin.SinceKotlin(version = "1.4") @@ -604,7 +604,7 @@ public inline fun kotlin.CharSequence.minOfWithOrNull(comparator: kotlin.Com public fun kotlin.CharSequence.minOrNull(): kotlin.Char? @kotlin.Deprecated(message = "Use minWithOrNull instead.", replaceWith = kotlin.ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {})) -@kotlin.DeprecatedSinceKotlin(warningSince = "1.4") +@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.4") public fun kotlin.CharSequence.minWith(comparator: kotlin.Comparator): kotlin.Char? @kotlin.SinceKotlin(version = "1.4") diff --git a/libraries/stdlib/common/src/generated/_Arrays.kt b/libraries/stdlib/common/src/generated/_Arrays.kt index aaa045ab33f..911126608c2 100644 --- a/libraries/stdlib/common/src/generated/_Arrays.kt +++ b/libraries/stdlib/common/src/generated/_Arrays.kt @@ -13683,117 +13683,117 @@ public inline fun CharArray.forEachIndexed(action: (index: Int, Char) -> Unit): } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Array.max(): Double? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Array.max(): Float? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun > Array.max(): T? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun ByteArray.max(): Byte? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun ShortArray.max(): Short? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun IntArray.max(): Int? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun LongArray.max(): Long? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun FloatArray.max(): Float? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun DoubleArray.max(): Double? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun CharArray.max(): Char? { return maxOrNull() } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > Array.maxBy(selector: (T) -> R): T? { return maxByOrNull(selector) } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > ByteArray.maxBy(selector: (Byte) -> R): Byte? { return maxByOrNull(selector) } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > ShortArray.maxBy(selector: (Short) -> R): Short? { return maxByOrNull(selector) } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > IntArray.maxBy(selector: (Int) -> R): Int? { return maxByOrNull(selector) } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > LongArray.maxBy(selector: (Long) -> R): Long? { return maxByOrNull(selector) } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > FloatArray.maxBy(selector: (Float) -> R): Float? { return maxByOrNull(selector) } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > DoubleArray.maxBy(selector: (Double) -> R): Double? { return maxByOrNull(selector) } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > BooleanArray.maxBy(selector: (Boolean) -> R): Boolean? { return maxByOrNull(selector) } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > CharArray.maxBy(selector: (Char) -> R): Char? { return maxByOrNull(selector) } @@ -15666,55 +15666,55 @@ public fun CharArray.maxOrNull(): Char? { } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun Array.maxWith(comparator: Comparator): T? { return maxWithOrNull(comparator) } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun ByteArray.maxWith(comparator: Comparator): Byte? { return maxWithOrNull(comparator) } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun ShortArray.maxWith(comparator: Comparator): Short? { return maxWithOrNull(comparator) } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun IntArray.maxWith(comparator: Comparator): Int? { return maxWithOrNull(comparator) } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun LongArray.maxWith(comparator: Comparator): Long? { return maxWithOrNull(comparator) } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun FloatArray.maxWith(comparator: Comparator): Float? { return maxWithOrNull(comparator) } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun DoubleArray.maxWith(comparator: Comparator): Double? { return maxWithOrNull(comparator) } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun BooleanArray.maxWith(comparator: Comparator): Boolean? { return maxWithOrNull(comparator) } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun CharArray.maxWith(comparator: Comparator): Char? { return maxWithOrNull(comparator) } @@ -15846,117 +15846,117 @@ public fun CharArray.maxWithOrNull(comparator: Comparator): Char? { } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Array.min(): Double? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Array.min(): Float? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun > Array.min(): T? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun ByteArray.min(): Byte? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun ShortArray.min(): Short? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun IntArray.min(): Int? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun LongArray.min(): Long? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun FloatArray.min(): Float? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun DoubleArray.min(): Double? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun CharArray.min(): Char? { return minOrNull() } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > Array.minBy(selector: (T) -> R): T? { return minByOrNull(selector) } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > ByteArray.minBy(selector: (Byte) -> R): Byte? { return minByOrNull(selector) } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > ShortArray.minBy(selector: (Short) -> R): Short? { return minByOrNull(selector) } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > IntArray.minBy(selector: (Int) -> R): Int? { return minByOrNull(selector) } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > LongArray.minBy(selector: (Long) -> R): Long? { return minByOrNull(selector) } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > FloatArray.minBy(selector: (Float) -> R): Float? { return minByOrNull(selector) } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > DoubleArray.minBy(selector: (Double) -> R): Double? { return minByOrNull(selector) } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > BooleanArray.minBy(selector: (Boolean) -> R): Boolean? { return minByOrNull(selector) } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > CharArray.minBy(selector: (Char) -> R): Char? { return minByOrNull(selector) } @@ -17829,55 +17829,55 @@ public fun CharArray.minOrNull(): Char? { } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun Array.minWith(comparator: Comparator): T? { return minWithOrNull(comparator) } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun ByteArray.minWith(comparator: Comparator): Byte? { return minWithOrNull(comparator) } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun ShortArray.minWith(comparator: Comparator): Short? { return minWithOrNull(comparator) } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun IntArray.minWith(comparator: Comparator): Int? { return minWithOrNull(comparator) } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun LongArray.minWith(comparator: Comparator): Long? { return minWithOrNull(comparator) } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun FloatArray.minWith(comparator: Comparator): Float? { return minWithOrNull(comparator) } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun DoubleArray.minWith(comparator: Comparator): Double? { return minWithOrNull(comparator) } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun BooleanArray.minWith(comparator: Comparator): Boolean? { return minWithOrNull(comparator) } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun CharArray.minWith(comparator: Comparator): Char? { return minWithOrNull(comparator) } diff --git a/libraries/stdlib/common/src/generated/_Collections.kt b/libraries/stdlib/common/src/generated/_Collections.kt index 062f02dce66..f74d5f9657e 100644 --- a/libraries/stdlib/common/src/generated/_Collections.kt +++ b/libraries/stdlib/common/src/generated/_Collections.kt @@ -1860,27 +1860,27 @@ public inline fun Iterable.forEachIndexed(action: (index: Int, T) -> Unit } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Iterable.max(): Double? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Iterable.max(): Float? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun > Iterable.max(): T? { return maxOrNull() } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > Iterable.maxBy(selector: (T) -> R): T? { return maxByOrNull(selector) } @@ -2134,7 +2134,7 @@ public fun > Iterable.maxOrNull(): T? { } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun Iterable.maxWith(comparator: Comparator): T? { return maxWithOrNull(comparator) } @@ -2155,27 +2155,27 @@ public fun Iterable.maxWithOrNull(comparator: Comparator): T? { } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Iterable.min(): Double? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Iterable.min(): Float? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun > Iterable.min(): T? { return minOrNull() } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > Iterable.minBy(selector: (T) -> R): T? { return minByOrNull(selector) } @@ -2429,7 +2429,7 @@ public fun > Iterable.minOrNull(): T? { } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun Iterable.minWith(comparator: Comparator): T? { return minWithOrNull(comparator) } diff --git a/libraries/stdlib/common/src/generated/_Maps.kt b/libraries/stdlib/common/src/generated/_Maps.kt index 5aa0b731807..8da3caf0d72 100644 --- a/libraries/stdlib/common/src/generated/_Maps.kt +++ b/libraries/stdlib/common/src/generated/_Maps.kt @@ -212,7 +212,7 @@ public inline fun Map.forEach(action: (Map.Entry) -> Unit } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @kotlin.internal.InlineOnly public inline fun > Map.maxBy(selector: (Map.Entry) -> R): Map.Entry? { return maxByOrNull(selector) @@ -342,7 +342,7 @@ public inline fun Map.maxOfWithOrNull(comparator: Comparator } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @kotlin.internal.InlineOnly public inline fun Map.maxWith(comparator: Comparator>): Map.Entry? { return maxWithOrNull(comparator) @@ -358,7 +358,7 @@ public inline fun Map.maxWithOrNull(comparator: Comparator> Map.minBy(selector: (Map.Entry) -> R): Map.Entry? { return minByOrNull(selector) } @@ -487,7 +487,7 @@ public inline fun Map.minOfWithOrNull(comparator: Comparator } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun Map.minWith(comparator: Comparator>): Map.Entry? { return minWithOrNull(comparator) } diff --git a/libraries/stdlib/common/src/generated/_Sequences.kt b/libraries/stdlib/common/src/generated/_Sequences.kt index 25463e78636..db451aed0cc 100644 --- a/libraries/stdlib/common/src/generated/_Sequences.kt +++ b/libraries/stdlib/common/src/generated/_Sequences.kt @@ -1303,27 +1303,27 @@ public inline fun Sequence.forEachIndexed(action: (index: Int, T) -> Unit } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Sequence.max(): Double? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Sequence.max(): Float? { return maxOrNull() } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun > Sequence.max(): T? { return maxOrNull() } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > Sequence.maxBy(selector: (T) -> R): T? { return maxByOrNull(selector) } @@ -1601,7 +1601,7 @@ public fun > Sequence.maxOrNull(): T? { } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun Sequence.maxWith(comparator: Comparator): T? { return maxWithOrNull(comparator) } @@ -1624,27 +1624,27 @@ public fun Sequence.maxWithOrNull(comparator: Comparator): T? { } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Sequence.min(): Double? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.1") public fun Sequence.min(): Float? { return minOrNull() } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun > Sequence.min(): T? { return minOrNull() } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > Sequence.minBy(selector: (T) -> R): T? { return minByOrNull(selector) } @@ -1922,7 +1922,7 @@ public fun > Sequence.minOrNull(): T? { } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun Sequence.minWith(comparator: Comparator): T? { return minWithOrNull(comparator) } diff --git a/libraries/stdlib/common/src/generated/_Strings.kt b/libraries/stdlib/common/src/generated/_Strings.kt index 41beac022c8..944c42ba574 100644 --- a/libraries/stdlib/common/src/generated/_Strings.kt +++ b/libraries/stdlib/common/src/generated/_Strings.kt @@ -1180,13 +1180,13 @@ public inline fun CharSequence.forEachIndexed(action: (index: Int, Char) -> Unit } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun CharSequence.max(): Char? { return maxOrNull() } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > CharSequence.maxBy(selector: (Char) -> R): Char? { return maxByOrNull(selector) } @@ -1397,7 +1397,7 @@ public fun CharSequence.maxOrNull(): Char? { } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun CharSequence.maxWith(comparator: Comparator): Char? { return maxWithOrNull(comparator) } @@ -1417,13 +1417,13 @@ public fun CharSequence.maxWithOrNull(comparator: Comparator): Char? { } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun CharSequence.min(): Char? { return minOrNull() } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public inline fun > CharSequence.minBy(selector: (Char) -> R): Char? { return minByOrNull(selector) } @@ -1634,7 +1634,7 @@ public fun CharSequence.minOrNull(): Char? { } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") public fun CharSequence.minWith(comparator: Comparator): Char? { return minWithOrNull(comparator) } diff --git a/libraries/stdlib/common/src/generated/_UArrays.kt b/libraries/stdlib/common/src/generated/_UArrays.kt index a977997a0c0..48c2179c17c 100644 --- a/libraries/stdlib/common/src/generated/_UArrays.kt +++ b/libraries/stdlib/common/src/generated/_UArrays.kt @@ -5943,7 +5943,7 @@ public inline fun UShortArray.forEachIndexed(action: (index: Int, UShort) -> Uni } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UIntArray.max(): UInt? { @@ -5951,7 +5951,7 @@ public fun UIntArray.max(): UInt? { } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun ULongArray.max(): ULong? { @@ -5959,7 +5959,7 @@ public fun ULongArray.max(): ULong? { } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UByteArray.max(): UByte? { @@ -5967,7 +5967,7 @@ public fun UByteArray.max(): UByte? { } @Deprecated("Use maxOrNull instead.", ReplaceWith("this.maxOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UShortArray.max(): UShort? { @@ -5975,7 +5975,7 @@ public fun UShortArray.max(): UShort? { } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes @kotlin.internal.InlineOnly @@ -5984,7 +5984,7 @@ public inline fun > UIntArray.maxBy(selector: (UInt) -> R): UI } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes @kotlin.internal.InlineOnly @@ -5993,7 +5993,7 @@ public inline fun > ULongArray.maxBy(selector: (ULong) -> R): } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes @kotlin.internal.InlineOnly @@ -6002,7 +6002,7 @@ public inline fun > UByteArray.maxBy(selector: (UByte) -> R): } @Deprecated("Use maxByOrNull instead.", ReplaceWith("this.maxByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes @kotlin.internal.InlineOnly @@ -6875,7 +6875,7 @@ public fun UShortArray.maxOrNull(): UShort? { } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UIntArray.maxWith(comparator: Comparator): UInt? { @@ -6883,7 +6883,7 @@ public fun UIntArray.maxWith(comparator: Comparator): UInt? { } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun ULongArray.maxWith(comparator: Comparator): ULong? { @@ -6891,7 +6891,7 @@ public fun ULongArray.maxWith(comparator: Comparator): ULong? { } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UByteArray.maxWith(comparator: Comparator): UByte? { @@ -6899,7 +6899,7 @@ public fun UByteArray.maxWith(comparator: Comparator): UByte? { } @Deprecated("Use maxWithOrNull instead.", ReplaceWith("this.maxWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UShortArray.maxWith(comparator: Comparator): UShort? { @@ -6967,7 +6967,7 @@ public fun UShortArray.maxWithOrNull(comparator: Comparator): UShort? } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UIntArray.min(): UInt? { @@ -6975,7 +6975,7 @@ public fun UIntArray.min(): UInt? { } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun ULongArray.min(): ULong? { @@ -6983,7 +6983,7 @@ public fun ULongArray.min(): ULong? { } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UByteArray.min(): UByte? { @@ -6991,7 +6991,7 @@ public fun UByteArray.min(): UByte? { } @Deprecated("Use minOrNull instead.", ReplaceWith("this.minOrNull()")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UShortArray.min(): UShort? { @@ -6999,7 +6999,7 @@ public fun UShortArray.min(): UShort? { } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes @kotlin.internal.InlineOnly @@ -7008,7 +7008,7 @@ public inline fun > UIntArray.minBy(selector: (UInt) -> R): UI } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes @kotlin.internal.InlineOnly @@ -7017,7 +7017,7 @@ public inline fun > ULongArray.minBy(selector: (ULong) -> R): } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes @kotlin.internal.InlineOnly @@ -7026,7 +7026,7 @@ public inline fun > UByteArray.minBy(selector: (UByte) -> R): } @Deprecated("Use minByOrNull instead.", ReplaceWith("this.minByOrNull(selector)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes @kotlin.internal.InlineOnly @@ -7899,7 +7899,7 @@ public fun UShortArray.minOrNull(): UShort? { } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UIntArray.minWith(comparator: Comparator): UInt? { @@ -7907,7 +7907,7 @@ public fun UIntArray.minWith(comparator: Comparator): UInt? { } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun ULongArray.minWith(comparator: Comparator): ULong? { @@ -7915,7 +7915,7 @@ public fun ULongArray.minWith(comparator: Comparator): ULong? { } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UByteArray.minWith(comparator: Comparator): UByte? { @@ -7923,7 +7923,7 @@ public fun UByteArray.minWith(comparator: Comparator): UByte? { } @Deprecated("Use minWithOrNull instead.", ReplaceWith("this.minWithOrNull(comparator)")) -@DeprecatedSinceKotlin(warningSince = "1.4") +@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.5") @SinceKotlin("1.3") @ExperimentalUnsignedTypes public fun UShortArray.minWith(comparator: Comparator): UShort? { diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Aggregates.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Aggregates.kt index 5c366f2a2b9..328b727085c 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Aggregates.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Aggregates.kt @@ -326,7 +326,7 @@ object Aggregates : TemplateGroupBase() { val isFloat = primitive?.isFloatingPoint() == true if (!nullable) { - deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull()", DeprecationLevel.WARNING, warningSince = "1.4")) + deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull()", warningSince = "1.4", errorSince = "1.5")) val isGeneric = f in listOf(Iterables, Sequences, ArraysOfObjects) if (isFloat && isGeneric) { @@ -393,7 +393,7 @@ object Aggregates : TemplateGroupBase() { returns("T?") if (!nullable) { - deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull(selector)", DeprecationLevel.WARNING, warningSince = "1.4")) + deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull(selector)", warningSince = "1.4", errorSince = "1.5")) body { "return ${op}OrNull(selector)" } return@builder } @@ -460,7 +460,7 @@ object Aggregates : TemplateGroupBase() { returns("T?") if (!nullable) { - deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull(comparator)", DeprecationLevel.WARNING, warningSince = "1.4")) + deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull(comparator)", warningSince = "1.4", errorSince = "1.5")) body { "return ${op}OrNull(comparator)" } return@builder } diff --git a/nj2k/src/org/jetbrains/kotlin/nj2k/conversions/resolveUtil.kt b/nj2k/src/org/jetbrains/kotlin/nj2k/conversions/resolveUtil.kt index efb395476b0..b06bb7bd750 100644 --- a/nj2k/src/org/jetbrains/kotlin/nj2k/conversions/resolveUtil.kt +++ b/nj2k/src/org/jetbrains/kotlin/nj2k/conversions/resolveUtil.kt @@ -93,7 +93,7 @@ class JKResolver(val project: Project, module: Module?, private val contextEleme when { typeAliasesPsi.isEmpty() -> classesPsi.firstOrNull() classesPsi.isEmpty() -> typeAliasesPsi.firstOrNull() - else -> (classesPsi.asSequence() + typeAliasesPsi.asSequence()).minWith(Comparator { o1, o2 -> + else -> (classesPsi.asSequence() + typeAliasesPsi.asSequence()).minWithOrNull(Comparator { o1, o2 -> scope.compare(o1.containingFile.virtualFile, o2.containingFile.virtualFile) }) }