From ea8a44b7514328176bfc926934dde16433a7fd0f Mon Sep 17 00:00:00 2001 From: Mykola Makhin Date: Tue, 7 Jan 2025 14:04:26 +0200 Subject: [PATCH] APPPOCTOOL-41: Fixed Sonar reported codesmell --- .../org/folio/tools/kong/service/KongGatewayServiceTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/folio-integration-kong/src/test/java/org/folio/tools/kong/service/KongGatewayServiceTest.java b/folio-integration-kong/src/test/java/org/folio/tools/kong/service/KongGatewayServiceTest.java index b1294bf..f219965 100644 --- a/folio-integration-kong/src/test/java/org/folio/tools/kong/service/KongGatewayServiceTest.java +++ b/folio-integration-kong/src/test/java/org/folio/tools/kong/service/KongGatewayServiceTest.java @@ -9,7 +9,6 @@ import static java.util.Collections.emptyMap; import static java.util.Collections.singletonList; import static java.util.stream.Collectors.joining; -import static java.util.stream.Collectors.toList; import static org.apache.commons.codec.digest.DigestUtils.sha1Hex; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; @@ -479,7 +478,7 @@ static Route route(List methods, String path, int priority, String inter .priority(priority) .expression(expression) .name(sha1Hex(routeName)) - .tags(Stream.of(moduleId, interfaceId).filter(Objects::nonNull).collect(toList())); + .tags(Stream.of(moduleId, interfaceId).filter(Objects::nonNull).toList()); } static ModuleDescriptor moduleDescriptor() {