#267 One variable decl per line (Java code conventions)

release_3.4
closed
Check (274)
5
2012-10-10
2003-11-18
No

Ive just downloaded the checkstyle application and
looked over the sun_checks.xml file. Im missing one rule
that warns if someone has declared several variables on
the same line.
The SUN Code conventions chapter 6.1 recommends
that declarations should be one per line.

Is there a rule for this? Ive looked through the
documentation and havent found anything that looks
like this.

Code convention at:
http://java.sun.com/docs/codeconv/html/CodeConventio
ns.doc5.html#2991

Discussion

  • Oliver Burn

    Oliver Burn - 2003-11-19

    Logged In: YES
    user_id=218824

    I am inclined to keep this open until it is proven that they are
    the replacements for this check. I tend to think they are
    separate.

     
  • Oleg Sukhodolsky

    Logged In: YES
    user_id=746148

    Committed to CVS for 3.4
    module MultipleVariableDeclarations

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks