Declare each variable on its own line with an explanatory comment about the role of the variable. Declaring multiple variables in a single declaration may cause confusion regarding the types of the variables and their initial values. When more than one variable is declared in a single declaration, ensure that the type and initial value of the variable are self evident. This practice is also recommended in the Code Conventions for the Java Programming Language Conventions 2009 Section 6.1, "Number Per Line".
This guideline applies to:
...
Wiki Markup |
---|
\[[Conventions 2009|AA. Bibliography#Conventions 09]\] Section 6.1, "Number Per Line" \[[ESA 2005|AA. Bibliography#ESA 05]\] Rule 9: Put single variable definitions in separate lines. \[[JLS 2005|AA. Bibliography#JLS 05]\] Section 6.1, "Declarations", Section 4.3.2, "The class Object" |
...