diff --git a/build.gradle b/build.gradle index a8f1a8cf0..4af5ed505 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ buildscript { classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' classpath 'com.netflix.nebula:gradle-info-plugin:5.2.0' classpath 'com.netflix.nebula:nebula-publishing-plugin:14.1.1' - classpath 'com.palantir.baseline:gradle-baseline-java:2.43.0' + classpath 'com.palantir.baseline:gradle-baseline-java:2.45.0' classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:1.13.1' classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.2' classpath 'com.palantir.metricschema:gradle-metric-schema:0.5.2' diff --git a/tritium-registry/src/main/java/com/palantir/tritium/metrics/registry/TaggedMetricRegistry.java b/tritium-registry/src/main/java/com/palantir/tritium/metrics/registry/TaggedMetricRegistry.java index 6922040ac..8e7810d69 100644 --- a/tritium-registry/src/main/java/com/palantir/tritium/metrics/registry/TaggedMetricRegistry.java +++ b/tritium-registry/src/main/java/com/palantir/tritium/metrics/registry/TaggedMetricRegistry.java @@ -103,7 +103,7 @@ default Optional> gauge(MetricName metricName) { * @param gauge gauge */ // This differs from MetricRegistry and takes the Gauge directly rather than a Supplier - @SuppressWarnings("deprecation") // explicitly using as desired + @SuppressWarnings({"deprecation", "UnsafeGaugeRegistration"}) // explicitly using as desired default void registerWithReplacement(MetricName metricName, Gauge gauge) { Gauge existing = gauge(metricName, gauge); if (existing == gauge) {