This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit c03b67e332031de9018850ae8be97f83df2c06af Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun May 18 17:56:24 2025 -0400 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 --- src/conf/spotbugs-exclude-filter.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/conf/spotbugs-exclude-filter.xml b/src/conf/spotbugs-exclude-filter.xml index 454a2f9a9..92a0d0a1e 100644 --- a/src/conf/spotbugs-exclude-filter.xml +++ b/src/conf/spotbugs-exclude-filter.xml @@ -50,10 +50,15 @@ <Bug pattern="EI_EXPOSE_REP2" /> </Match> <Match> - <!-- UnsynchronizedBufferedInputStream is not thread-safe by design. --> - <Class name="org.apache.commons.io.input.UnsynchronizedBufferedInputStream" /> + <Class name="org.apache.commons.io.input.UnsynchronizedByteArrayInputStream" /> + <!-- Unsynchronized* classes are not thread-safe by design. --> <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE" /> </Match> + <Match> + <!-- Unsynchronized* classes are not thread-safe by design. --> + <Class name="org.apache.commons.io.input.UnsynchronizedBufferedInputStream" /> + <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE, AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE" /> + </Match> <!-- The encoding is irrelevant as output is binned --> <Match> <Class name="org.apache.commons.io.output.NullPrintStream" />