Class MultipleVariableDeclarationsCheck

All Implemented Interfaces:
Configurable, Contextualizable

Checks that each variable declaration is in its own statement and on its own line.

Rationale: the Java code conventions chapter 6.1 recommends that declarations should be one per line/statement.

Parent is com.puppycrawl.tools.checkstyle.TreeWalker

Violation Message Keys:

  • multiple.variable.declarations
  • multiple.variable.declarations.comma
Since:
3.4