Skip to content

Files

Latest commit

 

History

History
22 lines (15 loc) · 595 Bytes

ConfusingMethodName.md

File metadata and controls

22 lines (15 loc) · 595 Bytes

Pattern: Confusing method name

Issue: -

Description

Checks for very confusing method names. The referenced methods have names that differ only by capitalization. This is very confusing because if the capitalization were identical then one of the methods would override the other.

Also, violations are triggered when methods and fields have very similar names.

class SomeClass {
    int total
    int total() {
        1
    }
}

Further Reading