From 4b56087641bef9c98938d9b1d119e219f6058f70 Mon Sep 17 00:00:00 2001 From: svc-excavator-bot Date: Sun, 3 Nov 2019 21:05:36 +0000 Subject: [PATCH] Excavator: Upgrades Baseline to the latest version --- .baseline/checkstyle/checkstyle.xml | 18 ++++++++---------- build.gradle | 2 +- .../python/PythonAliasTopologicalSorter.java | 4 ++-- .../conjure/python/ConjureSubfolderRunner.java | 2 +- .../conjure/python/cli/ConjurePythonCli.java | 5 +---- 5 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml index 792229cfc..d698c182e 100644 --- a/.baseline/checkstyle/checkstyle.xml +++ b/.baseline/checkstyle/checkstyle.xml @@ -84,11 +84,13 @@ + org.apache.commons.lang3.Validate.*, + org.assertj.core.api.Assertions.*, + org.mockito.Mockito.*"/> @@ -110,7 +112,6 @@ - @@ -369,10 +370,6 @@ - - - - @@ -422,6 +419,7 @@ + @@ -435,7 +433,7 @@ - + @@ -468,7 +466,7 @@ - + diff --git a/build.gradle b/build.gradle index 7f744e89c..2f0464d92 100644 --- a/build.gradle +++ b/build.gradle @@ -28,7 +28,7 @@ buildscript { classpath 'com.netflix.nebula:gradle-info-plugin:5.1.1' classpath 'com.netflix.nebula:nebula-publishing-plugin:14.0.0' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' - classpath 'com.palantir.baseline:gradle-baseline-java:0.65.0' + classpath 'com.palantir.baseline:gradle-baseline-java:2.28.2' classpath 'com.palantir.gradle.conjure:gradle-conjure:4.13.4' classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.2' classpath 'gradle.plugin.org.inferred:gradle-processors:3.1.0' diff --git a/conjure-python-core/src/main/java/com/palantir/conjure/python/PythonAliasTopologicalSorter.java b/conjure-python-core/src/main/java/com/palantir/conjure/python/PythonAliasTopologicalSorter.java index 4a0514c6c..6e6a16089 100644 --- a/conjure-python-core/src/main/java/com/palantir/conjure/python/PythonAliasTopologicalSorter.java +++ b/conjure-python-core/src/main/java/com/palantir/conjure/python/PythonAliasTopologicalSorter.java @@ -90,7 +90,7 @@ static class AliasEdgeVisitor implements Type.Visitor> { } @Override - public List visitPrimitive(PrimitiveType value) { + public List visitPrimitive(PrimitiveType _value) { return Collections.emptyList(); } @@ -126,7 +126,7 @@ public List visitReference(TypeName value) { } @Override - public List visitExternal(ExternalReference value) { + public List visitExternal(ExternalReference _value) { return Collections.emptyList(); } diff --git a/conjure-python-core/src/test/java/com/palantir/conjure/python/ConjureSubfolderRunner.java b/conjure-python-core/src/test/java/com/palantir/conjure/python/ConjureSubfolderRunner.java index 0f5eb7a03..bd7bbd219 100644 --- a/conjure-python-core/src/test/java/com/palantir/conjure/python/ConjureSubfolderRunner.java +++ b/conjure-python-core/src/test/java/com/palantir/conjure/python/ConjureSubfolderRunner.java @@ -149,7 +149,7 @@ private Optional maybeParallelScheduler(ParentFolder annotation @Override @SuppressWarnings("FutureReturnValueIgnored") public void schedule(Runnable childStatement) { - executor.submit(childStatement); + executor.execute(childStatement); } @Override diff --git a/conjure-python/src/main/java/com/palantir/conjure/python/cli/ConjurePythonCli.java b/conjure-python/src/main/java/com/palantir/conjure/python/cli/ConjurePythonCli.java index e77325f7f..55ac5de4a 100644 --- a/conjure-python/src/main/java/com/palantir/conjure/python/cli/ConjurePythonCli.java +++ b/conjure-python/src/main/java/com/palantir/conjure/python/cli/ConjurePythonCli.java @@ -29,7 +29,6 @@ import java.io.File; import java.io.IOException; import java.nio.file.Paths; -import java.util.List; import java.util.Optional; import picocli.CommandLine; @@ -89,9 +88,7 @@ public static final class GenerateCommand implements Runnable { description = "Generate a `conda_recipe/meta.yaml`") private boolean writeCondaRecipe; - @CommandLine.Unmatched - @SuppressWarnings("UnusedVariable") - private List unmatchedOptions; + @Override public void run() {