MNA.SUS

An MNA error appears if someone gave a method a suspicious name. For example, if you write a method with the signature:

public int hashcode()

you could mean:

public int hashCode()

An MNA.SUS warning is reported for methods whose names might contain a typing error.

Example 1

Copy
  public class MNA_SUS_Sample_1 {
      // method name might contain a typing error
     public String tostring() {
         return "Some string";
     }
 }

MNA.SUS is reported for method declaration on line 10: Suspicious method name 'tostring', did you mean 'toString'?

Related checkers