deprecation

This commit is contained in:
Ulisses Lima 2023-02-22 22:19:08 -03:00
parent 12f814488b
commit 8db563d9f9

View File

@ -17,7 +17,7 @@ public class ClassWithSuppressWarningsNames implements Serializable {
list.add(Integer.valueOf(value)); list.add(Integer.valueOf(value));
} }
@SuppressWarnings("deprecated") @SuppressWarnings("deprecation")
void suppressDeprecatedWarning() { void suppressDeprecatedWarning() {
ClassWithSuppressWarningsNames cls = new ClassWithSuppressWarningsNames(); ClassWithSuppressWarningsNames cls = new ClassWithSuppressWarningsNames();
cls.deprecatedMethod(); // no warning here cls.deprecatedMethod(); // no warning here