Skip to content

Commit 906c3a3

Browse files
authored
Support SuppressWarnings annotation for Checkstyle (#995)
JAVA-4715
1 parent a318dc5 commit 906c3a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,12 @@
224224
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)"/>
225225
<property name="checkFormat" value="$1"/>
226226
</module>
227-
227+
<!-- Make the @SuppressWarnings annotations available to Checkstyle -->
228+
<module name="SuppressWarningsHolder" />
228229
</module>
229230

231+
<module name="SuppressWarningsFilter" />
232+
230233
<module name="SuppressionFilter">
231234
<property name="file" value="${config_loc}/suppressions.xml"/>
232235
</module>

0 commit comments

Comments
 (0)