Skip to content

Commit e0068a7

Browse files
Excavator: Upgrades suppressible-error-prone to the latest version (#1265)
1 parent aac3803 commit e0068a7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717
classpath 'com.palantir.gradle.plugintesting:gradle-plugin-testing:0.6.0'
1818
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.62.0'
1919
classpath 'com.palantir.gradle.revapi:gradle-revapi:1.8.0'
20-
classpath 'com.palantir.suppressible-error-prone:gradle-suppressible-error-prone:2.7.0'
20+
classpath 'com.palantir.suppressible-error-prone:gradle-suppressible-error-prone:2.8.0'
2121
classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
2222
classpath 'me.champeau.jmh:jmh-gradle-plugin:0.7.3'
2323
}

idea-plugin/src/main/java/com/palantir/javaformat/intellij/FormatterProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Optional<FormatterService> get(Project project, PalantirJavaFormatSettings setti
7474
settings.injectedVersionIsOutdated()));
7575
}
7676

77+
@SuppressWarnings("for-rollout:Slf4jLogsafeArgs")
7778
private static Optional<FormatterService> createFormatter(FormatterCacheKey cacheKey) {
7879
if (cacheKey.nativeImageClassPath.isPresent()) {
7980
log.info("Using the native formatter with classpath: {}", cacheKey.nativeImageClassPath.get());
@@ -118,6 +119,7 @@ private static List<Path> getProvidedImplementationUrls(List<URI> implementation
118119
return implementationClasspath.stream().map(Path::of).collect(Collectors.toList());
119120
}
120121

122+
@SuppressWarnings("for-rollout:Slf4jLogsafeArgs")
121123
private static List<Path> getBundledImplementationUrls() {
122124
// Load from the jars bundled with the plugin.
123125
IdeaPluginDescriptor ourPlugin = getPluginDescriptor();
@@ -126,6 +128,7 @@ private static List<Path> getBundledImplementationUrls() {
126128
return listDirAsUrlsUnchecked(implDir);
127129
}
128130

131+
@SuppressWarnings("for-rollout:Slf4jLogsafeArgs")
129132
private static List<Path> getImplementationUrls(
130133
Optional<List<URI>> implementationClassPath, boolean useBundledImplementation) {
131134
if (useBundledImplementation) {
@@ -173,6 +176,7 @@ private static OptionalInt parseSdkJavaVersion(Sdk sdk) {
173176
return parseSdkJavaVersion(version);
174177
}
175178

179+
@SuppressWarnings("for-rollout:Slf4jLogsafeArgs")
176180
@VisibleForTesting
177181
static OptionalInt parseSdkJavaVersion(String version) {
178182
int indexOfVersionDelimiter = version.indexOf('.');

0 commit comments

Comments
 (0)