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(){...}

Leave a Comment