Praveen Praveen - 5 months ago 13
Android Question

What is @SuppressWarnings("deprecation") and ("unused") in Android?

Sometimes I've some warnings in my project:

@SuppressWarnings("deprecation")
@SuppressWarnings("unused")


What does this mean?

Answer

The @SuppressWarnings annotation disables certain compiler warnings. In this case, the warning about deprecated code ("deprecation") and unused local variables or unused private methods ("unused"). This article explains the possible values.

Comments