Advance Duration.toLongUnits() deprecation level to ERROR #KT-53864
This commit is contained in:
@@ -307,10 +307,12 @@ public final inline class Duration : kotlin.Comparable<kotlin.time.Duration> {
|
|||||||
|
|
||||||
@kotlin.time.ExperimentalTime
|
@kotlin.time.ExperimentalTime
|
||||||
@kotlin.Deprecated(message = "Use inWholeMilliseconds property instead.", replaceWith = kotlin.ReplaceWith(expression = "this.inWholeMilliseconds", imports = {}))
|
@kotlin.Deprecated(message = "Use inWholeMilliseconds property instead.", replaceWith = kotlin.ReplaceWith(expression = "this.inWholeMilliseconds", imports = {}))
|
||||||
|
@kotlin.DeprecatedSinceKotlin(errorSince = "1.8", warningSince = "1.5")
|
||||||
public final fun toLongMilliseconds(): kotlin.Long
|
public final fun toLongMilliseconds(): kotlin.Long
|
||||||
|
|
||||||
@kotlin.time.ExperimentalTime
|
@kotlin.time.ExperimentalTime
|
||||||
@kotlin.Deprecated(message = "Use inWholeNanoseconds property instead.", replaceWith = kotlin.ReplaceWith(expression = "this.inWholeNanoseconds", imports = {}))
|
@kotlin.Deprecated(message = "Use inWholeNanoseconds property instead.", replaceWith = kotlin.ReplaceWith(expression = "this.inWholeNanoseconds", imports = {}))
|
||||||
|
@kotlin.DeprecatedSinceKotlin(errorSince = "1.8", warningSince = "1.5")
|
||||||
public final fun toLongNanoseconds(): kotlin.Long
|
public final fun toLongNanoseconds(): kotlin.Long
|
||||||
|
|
||||||
public open override fun toString(): kotlin.String
|
public open override fun toString(): kotlin.String
|
||||||
|
|||||||
@@ -307,10 +307,12 @@ public final inline class Duration : kotlin.Comparable<kotlin.time.Duration> {
|
|||||||
|
|
||||||
@kotlin.time.ExperimentalTime
|
@kotlin.time.ExperimentalTime
|
||||||
@kotlin.Deprecated(message = "Use inWholeMilliseconds property instead.", replaceWith = kotlin.ReplaceWith(expression = "this.inWholeMilliseconds", imports = {}))
|
@kotlin.Deprecated(message = "Use inWholeMilliseconds property instead.", replaceWith = kotlin.ReplaceWith(expression = "this.inWholeMilliseconds", imports = {}))
|
||||||
|
@kotlin.DeprecatedSinceKotlin(errorSince = "1.8", warningSince = "1.5")
|
||||||
public final fun toLongMilliseconds(): kotlin.Long
|
public final fun toLongMilliseconds(): kotlin.Long
|
||||||
|
|
||||||
@kotlin.time.ExperimentalTime
|
@kotlin.time.ExperimentalTime
|
||||||
@kotlin.Deprecated(message = "Use inWholeNanoseconds property instead.", replaceWith = kotlin.ReplaceWith(expression = "this.inWholeNanoseconds", imports = {}))
|
@kotlin.Deprecated(message = "Use inWholeNanoseconds property instead.", replaceWith = kotlin.ReplaceWith(expression = "this.inWholeNanoseconds", imports = {}))
|
||||||
|
@kotlin.DeprecatedSinceKotlin(errorSince = "1.8", warningSince = "1.5")
|
||||||
public final fun toLongNanoseconds(): kotlin.Long
|
public final fun toLongNanoseconds(): kotlin.Long
|
||||||
|
|
||||||
public open override fun toString(): kotlin.String
|
public open override fun toString(): kotlin.String
|
||||||
|
|||||||
@@ -919,6 +919,7 @@ public value class Duration internal constructor(private val rawValue: Long) : C
|
|||||||
*/
|
*/
|
||||||
@ExperimentalTime
|
@ExperimentalTime
|
||||||
@Deprecated("Use inWholeNanoseconds property instead.", ReplaceWith("this.inWholeNanoseconds"))
|
@Deprecated("Use inWholeNanoseconds property instead.", ReplaceWith("this.inWholeNanoseconds"))
|
||||||
|
@DeprecatedSinceKotlin(warningSince = "1.5", errorSince = "1.8")
|
||||||
public fun toLongNanoseconds(): Long = inWholeNanoseconds
|
public fun toLongNanoseconds(): Long = inWholeNanoseconds
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -930,6 +931,7 @@ public value class Duration internal constructor(private val rawValue: Long) : C
|
|||||||
*/
|
*/
|
||||||
@ExperimentalTime
|
@ExperimentalTime
|
||||||
@Deprecated("Use inWholeMilliseconds property instead.", ReplaceWith("this.inWholeMilliseconds"))
|
@Deprecated("Use inWholeMilliseconds property instead.", ReplaceWith("this.inWholeMilliseconds"))
|
||||||
|
@DeprecatedSinceKotlin(warningSince = "1.5", errorSince = "1.8")
|
||||||
public fun toLongMilliseconds(): Long = inWholeMilliseconds
|
public fun toLongMilliseconds(): Long = inWholeMilliseconds
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user