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 6019b4a5fe34342ec8fcb12b415746510c7f1f18 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun May 18 17:44:30 2025 -0400 Ignore SpotBugs AT_STALE_THREAD_WRITE_OF_PRIMITIVE in org.apache.commons.io.input.UnsynchronizedBufferedInputStream UnsynchronizedBufferedInputStream is not thread-safe by design --- src/conf/spotbugs-exclude-filter.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/conf/spotbugs-exclude-filter.xml b/src/conf/spotbugs-exclude-filter.xml index ecb4fee9a..454a2f9a9 100644 --- a/src/conf/spotbugs-exclude-filter.xml +++ b/src/conf/spotbugs-exclude-filter.xml @@ -49,7 +49,11 @@ <Method name="<init>" /> <Bug pattern="EI_EXPOSE_REP2" /> </Match> - + <Match> + <!-- UnsynchronizedBufferedInputStream is not thread-safe by design. --> + <Class name="org.apache.commons.io.input.UnsynchronizedBufferedInputStream" /> + <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE" /> + </Match> <!-- The encoding is irrelevant as output is binned --> <Match> <Class name="org.apache.commons.io.output.NullPrintStream" />