whereswalden
whereswalden

Reputation: 4959

Checkstyle differs from normal Java on naming convention for final variables?

For a private final variable, Checkstyle is recommending a name that matches '^[a-z][a-zA-Z0-9]*$'. Shouldn't final variables be all caps?

e.g. Checkstyle wants test, tEST, or testTest. Isn't the convention usually TEST?

Upvotes: 1

Views: 1085

Answers (1)

fdreger
fdreger

Reputation: 12505

Only the public static final variables - those that act as constants.

Upvotes: 4

Related Questions