Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable "not used" warning for public methods of a class

The new intellij upgrade (10.5) now shows a warning that some of the methods defined for a class are not being used. These methods are public and I plan on not using all of them as I have created them to support the API expected. I would like to disable this warning (not used for public methods in a class). Is there a way to do it?.

like image 343
Vijaykumar Krishnaswamy Avatar asked May 29 '11 06:05

Vijaykumar Krishnaswamy


1 Answers

You can disable it for a single method like this

@SuppressWarnings("unused") public void myMethod(){...} 
like image 138
JT Montana Avatar answered Oct 04 '22 10:10

JT Montana