Skip to content

Commit

Permalink
Excavator: Upgrades Baseline to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot committed Nov 9, 2024
1 parent e19bde0 commit 71b4b4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ buildscript {
classpath 'com.palantir.gradle.failure-reports:gradle-failure-reports:1.13.0'
classpath 'org.revapi:gradle-revapi:1.8.0'
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.50.0'
classpath 'com.palantir.baseline:gradle-baseline-java:6.0.0'
classpath 'com.palantir.baseline:gradle-baseline-java:6.1.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.1.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
classpath 'com.palantir.metricschema:gradle-metric-schema:0.32.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public Optional<EndpointDefinition> tryParseEndpointDefinition(ExecutableElement
returnTypesResolver.getReturnType(endpointName, element, requestAnnotationReflector);
List<ArgumentDefinition> argumentDefinitions = element.getParameters().stream()
.map(arg -> getArgumentDefinition(endpointName, arg))
.flatMap(Optional::stream)
.filter(Optional::isPresent)
.map(Optional::get)
.collect(Collectors.toList());

if (httpPath.isEmpty()
Expand All @@ -80,7 +81,8 @@ public Optional<EndpointDefinition> tryParseEndpointDefinition(ExecutableElement

Set<String> expectedPathParams = httpPath.get().get().stream()
.map(HttpPathSegments::getVariableName)
.flatMap(Optional::stream)
.filter(Optional::isPresent)
.map(Optional::get)
.collect(Collectors.toSet());
Set<String> actualPathParams = argumentDefinitions.stream()
.filter(argument -> IS_PATH_PARAMETER.apply(argument.paramType()))
Expand Down

0 comments on commit 71b4b4d

Please sign in to comment.