Skip to content

Commit

Permalink
APPPOCTOOL-41: Fixed Sonar reported codesmell
Browse files Browse the repository at this point in the history
  • Loading branch information
mykolam-epm committed Jan 7, 2025
1 parent 26da7de commit ea8a44b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -479,7 +478,7 @@ static Route route(List<String> 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() {
Expand Down

0 comments on commit ea8a44b

Please sign in to comment.