1 2 3 4 5 6 7 8 9 10 11 12 13
@SuppressWarnings("all") class Annotation { @Override public String toString() { return super.toString(); } public void method(@SuppressWarnings("unused") int x) { } public void method2(@SuppressWarnings({"unused"}) int y) { } public void method3(@SuppressWarnings({"unused", "unchecked"}) int z) { } }