From 6c9df73b8f8c3e0ee7585e781c731f8829be5a3d Mon Sep 17 00:00:00 2001 From: svc-excavator-bot Date: Sat, 8 Jan 2022 01:42:56 +0000 Subject: [PATCH] Excavator: Upgrades Baseline to the latest version --- .../com/palantir/baseline/errorprone/DangerousIdentityKey.java | 3 +++ build.gradle | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/DangerousIdentityKey.java b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/DangerousIdentityKey.java index 378bd77e9..a4a016fa3 100644 --- a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/DangerousIdentityKey.java +++ b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/DangerousIdentityKey.java @@ -16,10 +16,12 @@ package com.palantir.baseline.errorprone; +import com.google.auto.service.AutoService; import com.google.common.collect.Iterables; import com.google.errorprone.BugPattern; import com.google.errorprone.BugPattern.SeverityLevel; import com.google.errorprone.VisitorState; +import com.google.errorprone.bugpatterns.BugChecker; import com.sun.tools.javac.code.Symbol.MethodSymbol; import com.sun.tools.javac.code.Type; import com.sun.tools.javac.code.Types; @@ -28,6 +30,7 @@ /** * Warns that users should not have a {@link java.util.regex.Pattern} as a key to a Set or Map. */ +@AutoService(BugChecker.class) @BugPattern( name = "DangerousIdentityKey", summary = "Key type does not override equals() and hashCode, so comparisons will be done on" diff --git a/build.gradle b/build.gradle index 04273aced..1db931592 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ buildscript { classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.6.0' classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.5.0' classpath 'com.gradle.publish:plugin-publish-plugin:0.19.0' - classpath 'com.palantir.baseline:gradle-baseline-java:4.55.0' + classpath 'com.palantir.baseline:gradle-baseline-java:4.56.0' classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.9.0' } }