#556 New check: AvoidModifiersForTypes

Future
closed
nobody
None
5
2015-09-24
2011-01-12
No

Disallow some set of modifiers for specified Java types.
Example: it hard to imagine common problems for such cases but in our case is a
static for ULCComponents is not allowed(http://ulc-community.canoo.com/snipsnap/space/Good+Practices) .

Only 4 types according to Java Spec: static, final, transient, volatile.
So we could have settings like this:
Static - "ULC*"
Final - ""
Transient - ""
Volatile - ""

Algorithm:
We detect variable/field declaration, detect modifier, check modifier's RegExp against Java Type, if match - fire error.

Discussion

  • Roman Ivanov

    Roman Ivanov - 2015-09-24

    issue tracer is moved to github, all sevntu Checks will be moved to main project eventually

     
  • Roman Ivanov

    Roman Ivanov - 2015-09-24
    • status: open --> closed
    • Group: --> Future
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks