Back to all rules
What this rule checks
Field names follow lowerCamelCase
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
int ballX = 200;
float speed = 2.5;
FAIL — this code triggers the rule
int BallX = 200;
// fields should start lowercase: ballX
Overview
Category Topic Variables
Level Intermediate
Type Built-in PMD
Priority 3 (1 = highest, 5 = lowest)
Status Active
PMD Configuration
PMD reference category/java/codestyle.xml/FieldNamingConventions