Skip to content

Commit 048d376

Browse files
committed
Ignore overridable method is called from the readObject() method
1 parent 6c0eeb2 commit 048d376

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

configuration/spotbugs-filters.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,17 @@
5454
<Bug pattern="MS_SHOULD_BE_FINAL, URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
5555
</Match>
5656
<Match>
57-
<!-- Original Apache Log4j 1.2 Classes -->
57+
<!-- Original Priority class from Apache Log4j 1.2 -->
5858
<Class name="org.apache.log4j.Priority" />
59-
<!-- Ignore unchecked casts as Apache Log4j 1.2 does -->
59+
<!-- Ignore unchecked casts as Apache Log4j 1.2 does it, too -->
6060
<Bug pattern="BC_UNCONFIRMED_CAST" />
6161
</Match>
62+
<Match>
63+
<!-- Original Level class from Apache Log4j 1.2 -->
64+
<Class name="org.apache.log4j.Level" />
65+
<!-- Ignore overridable method is called from the readObject() method -->
66+
<Bug pattern="MC_OVERRIDABLE_METHOD_CALL_IN_READ_OBJECT" />
67+
</Match>
6268
<Match>
6369
<!-- JUnit Tests -->
6470
<Source name="~.*Test\.java" />

0 commit comments

Comments
 (0)