Disable “not used” warning for public methods of a class
You can disable it for a single method like this @SuppressWarnings(“unused”) public void myMethod(){…}
You can disable it for a single method like this @SuppressWarnings(“unused”) public void myMethod(){…}
The JLS makes this clear: It is permitted, but discouraged as a matter of style, to redundantly specify the public and/or abstract modifier for a method declared in an interface.