Inspectopedia Help

Method

Boolean method name must start with question word  

Reports boolean methods whose names do not start with a question word.

Lambda-unfriendly method overload  

Reports overloaded methods that take functional interfaces with conflicting abstract method signatures.

Method name same as class name  

Reports methods that are named identically to their class.

Method name same as parent class name  

Reports methods that have the same name as the superclass of the method's class, as such a method name may be confusing.

Method names differing only by case  

Reports cases in which multiple methods of a class have the names that differ only by case.

Method naming convention  

Reports methods whose names are too short, too long, or do not follow the specified regular expression pattern.

Non-boolean method name must not start with question word  

Reports non-boolean methods whose names start with a question word.

Overloaded methods with same number of parameters  

Reports methods that are declared in the same class, have the same name, and the same number of parameters.

Overloaded varargs method  

Reports varargs methods with the same name as other methods in the class or in a superclass.

Last modified: 18 June 2024