Shawn
08/23/2021, 7:52 PMrtsketo
08/23/2021, 7:56 PM@Suppress("deprecation")
above the line of code you want to suppress.Ruckus
08/23/2021, 8:12 PMShawn
08/23/2021, 8:14 PMShawn
08/23/2021, 8:16 PMRuckus
08/23/2021, 8:21 PM@Suppress("DEPRECATION")
before the run. Nothing within the run will show deprecation warnings.
e.g.
deprecatedFunction() // Warning
@Suppress("DEPRECATION")
run {
deprecatedFunction() // No warning
...
anotherDeprecatedFunction() // No warning
}
anotherDeprecatedFunction() // Warning