Advance max/min(By/With) deprecation level to ERROR

This commit is contained in:
Abduqodiri Qurbonzoda
2021-03-25 22:05:28 +03:00
parent d70edeb38b
commit b0f1ddc91e
93 changed files with 476 additions and 572 deletions
@@ -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
}