Skip to content

Commit

Permalink
GH6883 sonar issue
Browse files Browse the repository at this point in the history
Signed-off-by: alexandr cumarav <[email protected]>
  • Loading branch information
cumarav committed Sep 8, 2023
1 parent cb48b96 commit 6e8ae49
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import static java.util.stream.Collectors.minBy;
import static org.zowe.apiml.constants.EurekaMetadataDefinition.SERVICE_DESCRIPTION;
import static org.zowe.apiml.constants.EurekaMetadataDefinition.SERVICE_TITLE;
import static org.zowe.apiml.services.ServiceInfo.ApiInfoExtended;
import static org.zowe.apiml.services.ServiceInfoUtils.getBasePath;
import static org.zowe.apiml.services.ServiceInfoUtils.getInstances;
import static org.zowe.apiml.services.ServiceInfoUtils.getMajorVersion;
Expand Down Expand Up @@ -112,7 +113,7 @@ private List<ServiceInfo.ApiInfoExtended> getApiInfos(List<InstanceInfo> appInst
return appInstances.stream()
.map(instanceInfo -> new AbstractMap.SimpleEntry<>(instanceInfo, eurekaMetadataParser.parseApiInfo(instanceInfo.getMetadata())))
.flatMap(entry -> entry.getValue().stream()
.map(apiInfo -> ServiceInfo.ApiInfoExtended.builder()
.map(apiInfo -> ApiInfoExtended.builder()
.apiId(apiInfo.getApiId())
.basePath(getBasePath(apiInfo, entry.getKey()))
.gatewayUrl(apiInfo.getGatewayUrl())
Expand Down

0 comments on commit 6e8ae49

Please sign in to comment.