Reports any calls to specific methods where the result of that call is ignored. Method calls inspected are:

For calls to many methods ignoring the result is perfectly legitimate, but for some methods it is almost certainly an error. Examples of methods where ignoring the result of a call is likely to be an error include java.io.inputStream.read(), which returns the number of bytes actually read and any method on java.lang.String or java.math.BigInteger, as all of those methods are side-effect free and thus pointless if ignored.

Use the panel below to specify the names of the classes containing the methods and method name patterns of the methods you wish to check. Class names have to be specified as a fully qualified name string and will match a class and all its inheritors. Method name patterns use the Java regular expression syntax.

Use the checkbox below to report all calls to non-library methods where the result of that call is ignored