From 363e1222f6779732d840685f4495300c69bf5eb0 Mon Sep 17 00:00:00 2001 From: svc-excavator-bot Date: Thu, 21 Nov 2019 19:45:14 +0000 Subject: [PATCH] Excavator: Upgrades Baseline to the latest version --- .../errorprone/StringBuilderConstantParameters.java | 8 ++++---- build.gradle | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StringBuilderConstantParameters.java b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StringBuilderConstantParameters.java index 862fc56ed..a9ec358f8 100644 --- a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StringBuilderConstantParameters.java +++ b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/StringBuilderConstantParameters.java @@ -83,11 +83,11 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState .build(); } List arguments = result.get(); - Stream prefixStream = arguments.stream().findFirst() + Stream prefixStream = arguments.stream() + .findFirst() .map(ASTHelpers::getType) - .filter(type -> - ASTHelpers.isSameType(type, state.getTypeFromString("java.lang.String"), state)) - .map(ignored -> Stream.of()) + .filter(type -> ASTHelpers.isSameType(type, state.getTypeFromString("java.lang.String"), state)) + .map(ignored -> Stream.empty()) .orElseGet(() -> Stream.of("\"\"")); return buildDescription(tree) diff --git a/build.gradle b/build.gradle index a4d93ed4c..52bdbcf63 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.2.0' - classpath 'com.palantir.baseline:gradle-baseline-java:2.34.0' + classpath 'com.palantir.baseline:gradle-baseline-java:2.35.2' } }