Inspectopedia Help

Method

Boolean method name must start with question word   New in this release

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

Lambda-unfriendly method overload   New in this release

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

Method name same as class name   New in this release

Reports methods that are named identically to their class.

Method name same as parent class name   New in this release

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   New in this release

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   New in this release

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

Overloaded methods with same number of parameters   New in this release

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

Overloaded varargs method   New in this release

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

Last modified: 11 September 2024