Skip to content

Commit

Permalink
Disallow static, non-final variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwinter committed Sep 9, 2022
1 parent 131dd03 commit 2d98aae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@
</module>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StaticVariableName"/>
<module name="StaticVariableName">
<!-- disallow static, non-final variables -->
<property name="format" value="^$"/>
</module>
<module name="StringLiteralEquality"/>
<module name="SuperClone"/>
<module name="SuperFinalize"/>
Expand Down

0 comments on commit 2d98aae

Please sign in to comment.