@@ -29,6 +29,7 @@ public actual fun <T : Comparable<T>> maxOf(a: T, b: T): T {
29
29
*/
30
30
@SinceKotlin(" 1.1" )
31
31
@kotlin.internal.InlineOnly
32
+ @Suppress(" DEPRECATION_ERROR" )
32
33
public actual inline fun maxOf (a : Byte , b : Byte ): Byte {
33
34
return Math .max(a.toInt(), b.toInt()).unsafeCast<Byte >()
34
35
}
@@ -38,6 +39,7 @@ public actual inline fun maxOf(a: Byte, b: Byte): Byte {
38
39
*/
39
40
@SinceKotlin(" 1.1" )
40
41
@kotlin.internal.InlineOnly
42
+ @Suppress(" DEPRECATION_ERROR" )
41
43
public actual inline fun maxOf (a : Short , b : Short ): Short {
42
44
return Math .max(a.toInt(), b.toInt()).unsafeCast<Short >()
43
45
}
@@ -47,6 +49,7 @@ public actual inline fun maxOf(a: Short, b: Short): Short {
47
49
*/
48
50
@SinceKotlin(" 1.1" )
49
51
@kotlin.internal.InlineOnly
52
+ @Suppress(" DEPRECATION_ERROR" )
50
53
public actual inline fun maxOf (a : Int , b : Int ): Int {
51
54
return Math .max(a, b)
52
55
}
@@ -55,7 +58,7 @@ public actual inline fun maxOf(a: Int, b: Int): Int {
55
58
* Returns the greater of two values.
56
59
*/
57
60
@SinceKotlin(" 1.1" )
58
- @Suppress(" NOTHING_TO_INLINE" )
61
+ @Suppress(" DEPRECATION_ERROR " , " NOTHING_TO_INLINE" )
59
62
public actual inline fun maxOf (a : Long , b : Long ): Long {
60
63
return if (a >= b) a else b
61
64
}
@@ -65,6 +68,7 @@ public actual inline fun maxOf(a: Long, b: Long): Long {
65
68
*/
66
69
@SinceKotlin(" 1.1" )
67
70
@kotlin.internal.InlineOnly
71
+ @Suppress(" DEPRECATION_ERROR" )
68
72
public actual inline fun maxOf (a : Float , b : Float ): Float {
69
73
return Math .max(a, b)
70
74
}
@@ -74,6 +78,7 @@ public actual inline fun maxOf(a: Float, b: Float): Float {
74
78
*/
75
79
@SinceKotlin(" 1.1" )
76
80
@kotlin.internal.InlineOnly
81
+ @Suppress(" DEPRECATION_ERROR" )
77
82
public actual inline fun maxOf (a : Double , b : Double ): Double {
78
83
return Math .max(a, b)
79
84
}
@@ -91,6 +96,7 @@ public actual fun <T : Comparable<T>> maxOf(a: T, b: T, c: T): T {
91
96
*/
92
97
@SinceKotlin(" 1.1" )
93
98
@kotlin.internal.InlineOnly
99
+ @Suppress(" DEPRECATION_ERROR" )
94
100
public actual inline fun maxOf (a : Byte , b : Byte , c : Byte ): Byte {
95
101
return Math .max(a.toInt(), b.toInt(), c.toInt()).unsafeCast<Byte >()
96
102
}
@@ -100,6 +106,7 @@ public actual inline fun maxOf(a: Byte, b: Byte, c: Byte): Byte {
100
106
*/
101
107
@SinceKotlin(" 1.1" )
102
108
@kotlin.internal.InlineOnly
109
+ @Suppress(" DEPRECATION_ERROR" )
103
110
public actual inline fun maxOf (a : Short , b : Short , c : Short ): Short {
104
111
return Math .max(a.toInt(), b.toInt(), c.toInt()).unsafeCast<Short >()
105
112
}
@@ -109,6 +116,7 @@ public actual inline fun maxOf(a: Short, b: Short, c: Short): Short {
109
116
*/
110
117
@SinceKotlin(" 1.1" )
111
118
@kotlin.internal.InlineOnly
119
+ @Suppress(" DEPRECATION_ERROR" )
112
120
public actual inline fun maxOf (a : Int , b : Int , c : Int ): Int {
113
121
return Math .max(a, b, c)
114
122
}
@@ -127,6 +135,7 @@ public actual inline fun maxOf(a: Long, b: Long, c: Long): Long {
127
135
*/
128
136
@SinceKotlin(" 1.1" )
129
137
@kotlin.internal.InlineOnly
138
+ @Suppress(" DEPRECATION_ERROR" )
130
139
public actual inline fun maxOf (a : Float , b : Float , c : Float ): Float {
131
140
return Math .max(a, b, c)
132
141
}
@@ -136,6 +145,7 @@ public actual inline fun maxOf(a: Float, b: Float, c: Float): Float {
136
145
*/
137
146
@SinceKotlin(" 1.1" )
138
147
@kotlin.internal.InlineOnly
148
+ @Suppress(" DEPRECATION_ERROR" )
139
149
public actual inline fun maxOf (a : Double , b : Double , c : Double ): Double {
140
150
return Math .max(a, b, c)
141
151
}
@@ -154,6 +164,7 @@ public actual fun <T : Comparable<T>> minOf(a: T, b: T): T {
154
164
*/
155
165
@SinceKotlin(" 1.1" )
156
166
@kotlin.internal.InlineOnly
167
+ @Suppress(" DEPRECATION_ERROR" )
157
168
public actual inline fun minOf (a : Byte , b : Byte ): Byte {
158
169
return Math .min(a.toInt(), b.toInt()).unsafeCast<Byte >()
159
170
}
@@ -163,6 +174,7 @@ public actual inline fun minOf(a: Byte, b: Byte): Byte {
163
174
*/
164
175
@SinceKotlin(" 1.1" )
165
176
@kotlin.internal.InlineOnly
177
+ @Suppress(" DEPRECATION_ERROR" )
166
178
public actual inline fun minOf (a : Short , b : Short ): Short {
167
179
return Math .min(a.toInt(), b.toInt()).unsafeCast<Short >()
168
180
}
@@ -172,6 +184,7 @@ public actual inline fun minOf(a: Short, b: Short): Short {
172
184
*/
173
185
@SinceKotlin(" 1.1" )
174
186
@kotlin.internal.InlineOnly
187
+ @Suppress(" DEPRECATION_ERROR" )
175
188
public actual inline fun minOf (a : Int , b : Int ): Int {
176
189
return Math .min(a, b)
177
190
}
@@ -180,7 +193,7 @@ public actual inline fun minOf(a: Int, b: Int): Int {
180
193
* Returns the smaller of two values.
181
194
*/
182
195
@SinceKotlin(" 1.1" )
183
- @Suppress(" NOTHING_TO_INLINE" )
196
+ @Suppress(" DEPRECATION_ERROR " , " NOTHING_TO_INLINE" )
184
197
public actual inline fun minOf (a : Long , b : Long ): Long {
185
198
return if (a <= b) a else b
186
199
}
@@ -190,6 +203,7 @@ public actual inline fun minOf(a: Long, b: Long): Long {
190
203
*/
191
204
@SinceKotlin(" 1.1" )
192
205
@kotlin.internal.InlineOnly
206
+ @Suppress(" DEPRECATION_ERROR" )
193
207
public actual inline fun minOf (a : Float , b : Float ): Float {
194
208
return Math .min(a, b)
195
209
}
@@ -199,6 +213,7 @@ public actual inline fun minOf(a: Float, b: Float): Float {
199
213
*/
200
214
@SinceKotlin(" 1.1" )
201
215
@kotlin.internal.InlineOnly
216
+ @Suppress(" DEPRECATION_ERROR" )
202
217
public actual inline fun minOf (a : Double , b : Double ): Double {
203
218
return Math .min(a, b)
204
219
}
@@ -216,6 +231,7 @@ public actual fun <T : Comparable<T>> minOf(a: T, b: T, c: T): T {
216
231
*/
217
232
@SinceKotlin(" 1.1" )
218
233
@kotlin.internal.InlineOnly
234
+ @Suppress(" DEPRECATION_ERROR" )
219
235
public actual inline fun minOf (a : Byte , b : Byte , c : Byte ): Byte {
220
236
return Math .min(a.toInt(), b.toInt(), c.toInt()).unsafeCast<Byte >()
221
237
}
@@ -225,6 +241,7 @@ public actual inline fun minOf(a: Byte, b: Byte, c: Byte): Byte {
225
241
*/
226
242
@SinceKotlin(" 1.1" )
227
243
@kotlin.internal.InlineOnly
244
+ @Suppress(" DEPRECATION_ERROR" )
228
245
public actual inline fun minOf (a : Short , b : Short , c : Short ): Short {
229
246
return Math .min(a.toInt(), b.toInt(), c.toInt()).unsafeCast<Short >()
230
247
}
@@ -234,6 +251,7 @@ public actual inline fun minOf(a: Short, b: Short, c: Short): Short {
234
251
*/
235
252
@SinceKotlin(" 1.1" )
236
253
@kotlin.internal.InlineOnly
254
+ @Suppress(" DEPRECATION_ERROR" )
237
255
public actual inline fun minOf (a : Int , b : Int , c : Int ): Int {
238
256
return Math .min(a, b, c)
239
257
}
@@ -252,6 +270,7 @@ public actual inline fun minOf(a: Long, b: Long, c: Long): Long {
252
270
*/
253
271
@SinceKotlin(" 1.1" )
254
272
@kotlin.internal.InlineOnly
273
+ @Suppress(" DEPRECATION_ERROR" )
255
274
public actual inline fun minOf (a : Float , b : Float , c : Float ): Float {
256
275
return Math .min(a, b, c)
257
276
}
@@ -261,6 +280,7 @@ public actual inline fun minOf(a: Float, b: Float, c: Float): Float {
261
280
*/
262
281
@SinceKotlin(" 1.1" )
263
282
@kotlin.internal.InlineOnly
283
+ @Suppress(" DEPRECATION_ERROR" )
264
284
public actual inline fun minOf (a : Double , b : Double , c : Double ): Double {
265
285
return Math .min(a, b, c)
266
286
}
0 commit comments