Java Naming Conventions

Background

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

Example

Bad code:

Good code:



static final int myFinalField = 0;
static final int MY_FINAL_FIELD = 0;


Requires bindings

This code check requires Eclipse to resolve bindings. Enabling this code check increases build time.

@SuppressWarnings

Warnings generated by this codecheck can be suppressed by adding the @SuppressWarnings("naming-convention") annotation.