In Kotlin
@SuppressWarnings
changes to
@Suppress
To remove a strike with obsolete warnings, you must add
@Suppress("DEPRECATION")
to remove the warning from the super method. By adding
@Suppress("OverridingDeprecatedMember")
Function warning will be deleted. So, the full annotation will be:
@Suppress("OverridingDeprecatedMember", "DEPRECATION")
As an additional note, erasing should be written as "DEPRECATION" (use uppercase letters)
source share