Skip to content

Commit c03b67e

Browse files
committed
Ignore SpotBugs AT_STALE_THREAD_WRITE_OF_PRIMITIVE,
AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE in org.apache.commons.io.input.UnsynchronizedBufferedInputStream org.apache.commons.io.input.UnsynchronizedBufferedInputStream is not thread-safe by design
1 parent 6019b4a commit c03b67e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/conf/spotbugs-exclude-filter.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,15 @@
5050
<Bug pattern="EI_EXPOSE_REP2" />
5151
</Match>
5252
<Match>
53-
<!-- UnsynchronizedBufferedInputStream is not thread-safe by design. -->
54-
<Class name="org.apache.commons.io.input.UnsynchronizedBufferedInputStream" />
53+
<Class name="org.apache.commons.io.input.UnsynchronizedByteArrayInputStream" />
54+
<!-- Unsynchronized* classes are not thread-safe by design. -->
5555
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE" />
5656
</Match>
57+
<Match>
58+
<!-- Unsynchronized* classes are not thread-safe by design. -->
59+
<Class name="org.apache.commons.io.input.UnsynchronizedBufferedInputStream" />
60+
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE, AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE" />
61+
</Match>
5762
<!-- The encoding is irrelevant as output is binned -->
5863
<Match>
5964
<Class name="org.apache.commons.io.output.NullPrintStream" />

0 commit comments

Comments
 (0)