From d6fb41af6b1d8d6809b403cbe09c9028f9bf3016 Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:20:38 -0800 Subject: [PATCH] Excavator: Upgrades Baseline to the latest version (#1186) --- build.gradle | 2 +- .../src/main/java/com/palantir/javaformat/java/Main.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 02923255..6b2774fe 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { dependencies { classpath 'com.palantir.jakartapackagealignment:jakarta-package-alignment:0.6.0' classpath 'com.gradle.publish:plugin-publish-plugin:1.3.0' - classpath 'com.palantir.baseline:gradle-baseline-java:6.5.0' + classpath 'com.palantir.baseline:gradle-baseline-java:6.7.0' classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.31.0' classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.19.0' classpath 'com.palantir.gradle.failure-reports:gradle-failure-reports:1.13.0' diff --git a/palantir-java-format/src/main/java/com/palantir/javaformat/java/Main.java b/palantir-java-format/src/main/java/com/palantir/javaformat/java/Main.java index ab74242d..169bb962 100644 --- a/palantir-java-format/src/main/java/com/palantir/javaformat/java/Main.java +++ b/palantir-java-format/src/main/java/com/palantir/javaformat/java/Main.java @@ -107,6 +107,7 @@ public int format(String... args) throws UsageException { } } + @SuppressWarnings("for-rollout:RedundantControlFlow") private int formatFiles(CommandLineOptions parameters, JavaFormatterOptions options) { int numThreads = Math.min(MAX_THREADS, parameters.files().size()); ExecutorService executorService = Executors.newFixedThreadPool(numThreads);