[Codenarc-user] FieldNameRule: definition of what's a constant
Brought to you by:
chrismair
From: R. S. <ren...@go...> - 2011-05-30 20:35:18
|
I was wondering why the "finalRegex" contains the DEFAULT_CONST_NAME pattern. I think only the "staticFinalRegex" should contain the DEFAULT_CONST_NAME pattern, as only "static final" declares class constants. Have a look at Sun's code conventions: http://www.oracle.com/technetwork/java/codeconventions-135099.html#367 http://download.oracle.com/javase/tutorial/java/nutsandbolts/variables.html I was confused when violations popped up for things I am doing since years. :-) Regards, René Scheibe |