Advance max/min(By/With) deprecation level to HIDDEN #KT-38854

This commit is contained in:
Abduqodiri Qurbonzoda
2021-09-13 16:52:29 +03:00
parent d9f8ce899a
commit 7e1cd757fb
14 changed files with 433 additions and 433 deletions
@@ -330,7 +330,7 @@ object Aggregates : TemplateGroupBase() {
val isFloat = primitive?.isFloatingPoint() == true
if (!nullable) {
deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull()", warningSince = "1.4", errorSince = "1.5"))
deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull()", warningSince = "1.4", errorSince = "1.5", hiddenSince = "1.6"))
val isGeneric = f in listOf(Iterables, Sequences, ArraysOfObjects)
if (isFloat && isGeneric) {
@@ -397,7 +397,7 @@ object Aggregates : TemplateGroupBase() {
returns("T?")
if (!nullable) {
deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull(selector)", warningSince = "1.4", errorSince = "1.5"))
deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull(selector)", warningSince = "1.4", errorSince = "1.5", hiddenSince = "1.6"))
body { "return ${op}OrNull(selector)" }
return@builder
}
@@ -464,7 +464,7 @@ object Aggregates : TemplateGroupBase() {
returns("T?")
if (!nullable) {
deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull(comparator)", warningSince = "1.4", errorSince = "1.5"))
deprecate(Deprecation("Use ${op}OrNull instead.", "this.${op}OrNull(comparator)", warningSince = "1.4", errorSince = "1.5", hiddenSince = "1.6"))
body { "return ${op}OrNull(comparator)" }
return@builder
}