Skip to content

Commit

Permalink
[Java] Add checkstyle rule for final variables in for-each loops.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Feb 21, 2017
1 parent 8c90d4d commit 4708e2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@

<module name="ConstantName"/>

<module name="FinalParameters"/>
<module name="FinalLocalVariable">
<property name="validateEnhancedForLoopVariable" value="true"/>
</module>

<module name="FinalLocalVariable"/>

Expand Down

0 comments on commit 4708e2f

Please sign in to comment.