Praveen Praveen - 1 year ago 115
Android Question

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

Sometimes I've some warnings in my project:


What does this mean?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download