Skip to content
4 changes: 4 additions & 0 deletions core/src/main/spotbugs/exclude-filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@
<!-- More convenient to ignore these everywhere, because it's very common and unimportant -->
<Bug pattern="JUA_DONT_ASSERT_INSTANCEOF_IN_TESTS" />
</Match>
<Match>
<!-- More convenient to ignore these everywhere, because it's very common in deprecated code -->
<Bug pattern="USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION" />
</Match>
</FindBugsFilter>
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public void test() throws InterruptedException {
// Programatically modify the Log4j2 Logging configuration to add an appender
LoggerContext ctx = LoggerContext.getContext(false);
Configuration cfg = ctx.getConfiguration();
PatternLayout layout = PatternLayout.newBuilder().withConfiguration(cfg)
.withPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build();
PatternLayout layout = PatternLayout.newBuilder().setConfiguration(cfg)
.setPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build();
Appender appender = WriterAppender.createAppender(layout, null, writer,
"EscalatingLoggerTestAppender", false, true);
appender.start();
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ under the License.
<version.curator>5.8.0</version.curator>
<version.errorprone>2.41.0</version.errorprone>
<version.hadoop>3.3.6</version.hadoop>
<version.log4j>2.25.4</version.log4j>
<version.log4j>2.26.1</version.log4j>
<version.opentelemetry>1.48.0</version.opentelemetry>
<version.powermock>2.0.9</version.powermock>
<version.slf4j>2.0.17</version.slf4j>
Expand Down Expand Up @@ -277,7 +277,7 @@ under the License.
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>4.9.3</version>
<version>4.10.3</version>
</dependency>
<dependency>
<groupId>com.google.auto.service</groupId>
Expand Down Expand Up @@ -780,7 +780,7 @@ under the License.
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.9.8.2</version>
<version>4.10.3.0</version>
<configuration>
<xmlOutput>true</xmlOutput>
<effort>Max</effort>
Expand Down
4 changes: 4 additions & 0 deletions start/src/main/spotbugs/exclude-filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@
<!-- More convenient to ignore these everywhere, because it's very common and unimportant -->
<Bug pattern="JUA_DONT_ASSERT_INSTANCEOF_IN_TESTS" />
</Match>
<Match>
<!-- More convenient to ignore these everywhere, because it's very common in deprecated code -->
<Bug pattern="USO_UNSAFE_STATIC_METHOD_SYNCHRONIZATION" />
</Match>
</FindBugsFilter>
Loading