Pattern: Illegal position for array brackets
Issue: -
This rule enforces the use of either C-style or Java-style for array declarations. The default is Java-style based on Google Java Style Guide - the square brackets form a part of the type, not the variable: String[] args
, not String args[]
.
<module name="ArrayTypeStyle"/>
To configure the check to enforce C style:
<module name="ArrayTypeStyle">
<property name="javaStyle" value="false"/>
</module>