From 7e848aa93e2249e94018740ad04ee5195211414c Mon Sep 17 00:00:00 2001 From: svc-excavator-bot Date: Sat, 2 Nov 2019 01:43:16 +0000 Subject: [PATCH] Excavator: Upgrades Baseline to the latest version --- .baseline/checkstyle/checkstyle.xml | 5 ----- .../palantir/baseline/errorprone/StrictUnusedVariable.java | 2 +- build.gradle | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml index 43ec38a3a..d698c182e 100644 --- a/.baseline/checkstyle/checkstyle.xml +++ b/.baseline/checkstyle/checkstyle.xml @@ -112,7 +112,6 @@ - @@ -371,10 +370,6 @@ - - - - diff --git a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StrictUnusedVariable.java b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StrictUnusedVariable.java index 7fbefe19b..38988e8ab 100644 --- a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StrictUnusedVariable.java +++ b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StrictUnusedVariable.java @@ -604,7 +604,7 @@ private static boolean exemptedByName(Name name) { return EXEMPT_PREFIXES.stream().anyMatch(prefix -> Ascii.toLowerCase(name.toString()).startsWith(prefix)); } - private class VariableFinder extends TreePathScanner { + private final class VariableFinder extends TreePathScanner { private final Map unusedElements = new HashMap<>(); private final Set onlyCheckForReassignments = new HashSet<>(); diff --git a/build.gradle b/build.gradle index a353f13c8..1b1aa60f5 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ buildscript { classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' classpath 'com.netflix.nebula:nebula-publishing-plugin:14.1.1' classpath 'com.netflix.nebula:gradle-info-plugin:5.1.1' - classpath 'com.palantir.baseline:gradle-baseline-java:2.27.0' + classpath 'com.palantir.baseline:gradle-baseline-java:2.28.1' } }