Skip to content

Commit

Permalink
Bump com.github.spotbugs.snom:spotbugs-gradle-plugin from 5.1.4 to 5.…
Browse files Browse the repository at this point in the history
…2.1 (#41)

* Bump com.github.spotbugs.snom:spotbugs-gradle-plugin from 5.1.4 to 5.2.1

Bumps [com.github.spotbugs.snom:spotbugs-gradle-plugin](https://github.com/spotbugs/spotbugs-gradle-plugin) from 5.1.4 to 5.2.1.
- [Release notes](https://github.com/spotbugs/spotbugs-gradle-plugin/releases)
- [Commits](spotbugs/spotbugs-gradle-plugin@5.1.4...5.2.1)

---
updated-dependencies:
- dependency-name: com.github.spotbugs.snom:spotbugs-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix new check failures

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andy Coates <[email protected]>
  • Loading branch information
dependabot[bot] and big-andy-coates authored Oct 28, 2023
1 parent 3e42a52 commit dab20ff
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
}

dependencies {
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:5.1.4") // https://plugins.gradle.org/plugin/com.github.spotbugs
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:5.2.1") // https://plugins.gradle.org/plugin/com.github.spotbugs
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.22.0") // https://plugins.gradle.org/plugin/com.diffplug.spotless
implementation("gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.2") // https://plugins.gradle.org/plugin/com.github.kt3k.coveralls
implementation("org.javamodularity:moduleplugin:1.8.12") // https://plugins.gradle.org/plugin/org.javamodularity.moduleplugin
Expand Down
6 changes: 6 additions & 0 deletions config/spotbugs/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@
<Source name="~.*[\\/]jmh_generated[\\/].*" />
</Match>

<Match>
<!-- Disable this check as it leads to longer names and harder to read code -->
<!-- Discussion: https://github.com/spotbugs/spotbugs/issues/2627 -->
<Bug pattern="PI_DO_NOT_REUSE_PUBLIC_IDENTIFIERS_CLASS_NAMES"/>
</Match>

</FindBugsFilter>
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,10 @@ public org.creekservice.kafka.test.perf.serde.Serializer serializer() {
public org.creekservice.kafka.test.perf.serde.Deserializer deserializer() {
return data -> deserializer.deserialize(TOPIC_NAME, data);
}

// Final, empty finalize method stops spotbugs CT_CONSTRUCTOR_THROW
// Can be moved to base type after https://github.com/spotbugs/spotbugs/issues/2665
@Override
@SuppressWarnings({"deprecation", "Finalize"})
protected final void finalize() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class JustifySerde extends SerdeImpl {
private JsonValidationService service;
private JsonSchema schema;
private ProblemHandler handler;
public ObjectMapper mapper = JsonMapper.builder().build();
private ObjectMapper mapper = JsonMapper.builder().build();

public JustifySerde() {
service = JsonValidationService.newInstance();
Expand Down Expand Up @@ -160,4 +160,10 @@ private SpecVersion schemaVersion(final SchemaSpec spec) {
}
};
}

// Final, empty finalize method stops spotbugs CT_CONSTRUCTOR_THROW
// Can be moved to base type after https://github.com/spotbugs/spotbugs/issues/2665
@Override
@SuppressWarnings({"deprecation", "Finalize"})
protected final void finalize() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,10 @@ private Schema parseSchema(
throw new RuntimeException(e);
}
}

// Final, empty finalize method stops spotbugs CT_CONSTRUCTOR_THROW
// Can be moved to base type after https://github.com/spotbugs/spotbugs/issues/2665
@Override
@SuppressWarnings({"deprecation", "Finalize"})
protected final void finalize() {}
}

0 comments on commit dab20ff

Please sign in to comment.