'Kotlin: Suppress unused Property?

My source code is as follows:

There are warnings : Property '****' is never used.

I added "@Suppress("UNUSED_PARAMETER")", "@Suppress("UNUSED_PROPERTY_GETTER")", "@Suppress("UNUSED_PROPERTY_SETTER")",
however, none of them work.

How can I suppress this warning?

enter image description here



Solution 1:[1]

Use @Suppress("unused") in order to suppress unused warning.

For those cases you can use the IDE. press alt+enter: IDE unused suppress

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Yoav Sternberg