Skip to content

Commit

Permalink
spotbugs 4.8.1
Browse files Browse the repository at this point in the history
Update to latest version of spotbugs and gradle plugin to
avoid build errors when using jdk21.
  • Loading branch information
brharrington committed Nov 15, 2023
1 parent fb69125 commit bdfa5a1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'com.github.ben-manes.versions' version '0.47.0'
id 'com.github.spotbugs' version '5.1.3' apply false
id 'com.github.spotbugs' version '5.2.3' apply false
id 'me.champeau.jmh' version '0.7.1'
id 'com.netflix.nebula.dependency-recommender' version '12.2.0'
id 'com.netflix.nebula.netflixoss' version '11.3.2'
Expand Down Expand Up @@ -107,7 +107,7 @@ subprojects {
}

spotbugs {
toolVersion = '4.7.3'
toolVersion = '4.8.1'
excludeFilter = rootProject.file('codequality/findbugs-exclude.xml')
ignoreFailures = false
spotbugsMain.enabled = true
Expand Down
12 changes: 12 additions & 0 deletions codequality/findbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@
<Bug pattern="UL_UNRELEASED_LOCK"/>
</And>
</Match>
<Match>
<And>
<Class name="com.netflix.spectator.ipc.http.HttpUtils$GzipLevelOutputStream"/>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
</And>
</Match>
<Match>
<And>
<Class name="com.netflix.spectator.sandbox.HttpUtils$GzipLevelOutputStream"/>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
</And>
</Match>
<Match>
<And>
<Class name="com.netflix.spectator.perf.ManyTags"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.MalformedURLException;
import java.util.Locale;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -56,7 +55,7 @@ public class SparkSink implements Sink {
public SparkSink(
Properties properties,
MetricRegistry registry,
org.apache.spark.SecurityManager manager) throws MalformedURLException {
org.apache.spark.SecurityManager manager) {
final Config config = loadConfig();
sidecarRegistry = new SidecarRegistry(
Clock.SYSTEM, new SpectatorConfig(config.getConfig("spectator.spark.sidecar")));
Expand Down

0 comments on commit bdfa5a1

Please sign in to comment.