Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Excavator: Upgrades Baseline to the latest version
Browse files Browse the repository at this point in the history
svc-excavator-bot committed Nov 22, 2019
1 parent 7268f3b commit 1f9ec85
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -83,11 +83,11 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState
.build();
}
List<ExpressionTree> arguments = result.get();
Stream<String> prefixStream = arguments.stream().findFirst()
Stream<String> prefixStream = arguments.stream()
.findFirst()
.map(ASTHelpers::getType)
.filter(type ->
ASTHelpers.isSameType(type, state.getTypeFromString("java.lang.String"), state))
.map(ignored -> Stream.<String>of())
.filter(type -> ASTHelpers.isSameType(type, state.getTypeFromString("java.lang.String"), state))
.map(ignored -> Stream.empty())
.orElseGet(() -> Stream.of("\"\""));

return buildDescription(tree)
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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'
}
}

0 comments on commit 1f9ec85

Please sign in to comment.