Adhering to the Java naming conventions will make code easier to read. The used identifier determines its function, for example whether it's a constant, method or class.
The java code convention can be found on the
Sun website
Since 0.6
Bad code: |
Good code: |
|
static final int myFinalField = 0; |
static final int MY_FINAL_FIELD = 0; |
|
This code check requires Eclipse to resolve bindings. Enabling this code check increases build time.
Warnings generated by this codecheck can be suppressed by adding the @SuppressWarnings("naming-convention")
annotation.