Deprecated ranges: relax errors to warnings.
This commit is contained in:
@@ -139,7 +139,7 @@ class LongProgressionIterator(start: Long, end: Long, val increment: Long) : Lon
|
||||
* An iterator over a progression of values of type `Float`.
|
||||
* @property increment the number by which the value is incremented on each step.
|
||||
*/
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.ERROR)
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.WARNING)
|
||||
class FloatProgressionIterator(start: Float, val end: Float, val increment: Float) : FloatIterator() {
|
||||
private var next = start
|
||||
|
||||
@@ -156,7 +156,7 @@ class FloatProgressionIterator(start: Float, val end: Float, val increment: Floa
|
||||
* An iterator over a progression of values of type `Double`.
|
||||
* @property increment the number by which the value is incremented on each step.
|
||||
*/
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.ERROR)
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.WARNING)
|
||||
class DoubleProgressionIterator(start: Double, val end: Double, val increment: Double) : DoubleIterator() {
|
||||
private var next = start
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ public class LongProgression(
|
||||
override fun toString(): String = if (increment > 0) "$start..$end step $increment" else "$start downTo $end step ${-increment}"
|
||||
}
|
||||
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.ERROR)
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.WARNING)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
/**
|
||||
* A progression of values of type `Float`.
|
||||
@@ -183,7 +183,7 @@ public class FloatProgression(
|
||||
override fun toString(): String = if (increment > 0) "$start..$end step $increment" else "$start downTo $end step ${-increment}"
|
||||
}
|
||||
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.ERROR)
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.WARNING)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
/**
|
||||
* A progression of values of type `Double`.
|
||||
|
||||
@@ -158,7 +158,7 @@ public class LongRange(override val start: Long, override val end: Long) : Range
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.ERROR)
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.WARNING)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
/**
|
||||
* A range of values of type `Float`.
|
||||
@@ -188,7 +188,7 @@ public class FloatRange(override val start: Float, override val end: Float) : Ra
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.ERROR)
|
||||
@Deprecated("This range implementation has unclear semantics and will be removed soon.", level = DeprecationLevel.WARNING)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
/**
|
||||
* A range of values of type `Double`.
|
||||
|
||||
Reference in New Issue
Block a user