Disable “not used” warning for public methods of a class January 21, 2023 by Tarik You can disable it for a single method like this @SuppressWarnings("unused") public void myMethod(){...}