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' } }