Ir al contenido

Method name camelCase (ARCH4002)

Esta página aún no está disponible en tu idioma.

Key java.naming.method-name-camelcase · Severity warning · Category naming

Java method names should use camelCase (first letter lowercase, subsequent words capitalized). PascalCase or snake_case breaks the language convention.

public class Cart {
public int CalculateTotal() {
return 0;
}
}
public class Cart {
public int calculateTotal() {
return 0;
}
}

Lowercase the method’s first letter to convert it to camelCase.