Menu

#4 FieldNameRule: Names for final fields - not be all caps

closed-fixed
None
5
2009-07-18
2009-06-24
Chris Mair
No

FieldNameRule: Field names for final instance fields should not default to be all caps like static final fields. For instance: final List sentEmails = []. Rather, “If a property is declared final the private field is created final and no setter is generated.” (http://groovy.codehaus.org/Groovy+Beans). So, they should be named with “normal” naming conventions. Re-purpose the finalRegex property to just apply to final instance fields and default to null so that final field names use same convention as non-final.

Discussion

  • Chris Mair

    Chris Mair - 2009-07-18
    • status: open --> closed-fixed
     
  • Chris Mair

    Chris Mair - 2009-07-18

    Fixed in version 0.6. -- Chris Mair

     

Log in to post a comment.

MongoDB Logo MongoDB