Use @SuppressWarnings for checkstyle suppressions & warnings

It's better to use @SuppressWarnings instead of the suppressions file, so that the warning suppression is at the place where it acts.
This commit is contained in:
Stypox 2022-03-18 23:57:11 +01:00
parent b1690ca60d
commit 8cc890d799
6 changed files with 7 additions and 7 deletions

View file

@ -3,13 +3,7 @@
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
<suppressions>
<suppress checks="FinalParameters"
files="LocalItemListAdapter.java"
lines="232,304"/>
<suppress checks="EmptyBlock"
files="ContentSettingsFragment.java"
lines="227,245"/>
<!-- Use @SuppressWarnings("...") if it is possible, only use this file if it is not -->
<suppress checks="FileLength"
files="Player.java"/>