Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
  • Loading branch information
stephen-crawford committed Dec 30, 2022
1 parent 39c7679 commit 4ea9c63
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ public static List<String> filterIndices(List<String> availableIndices, String[]
// Move the exclusions to end of list to ensure they are processed
// after explicitly selected indices are chosen.
final List<String> excludesAtEndSelectedIndices = Stream.concat(
Arrays.stream(selectedIndices)
.filter(s -> s.isEmpty() || s.charAt(0) != '-'),
Arrays.stream(selectedIndices)
.filter(s -> !s.isEmpty() && s.charAt(0) == '-'))
.collect(Collectors.toUnmodifiableList());
Arrays.stream(selectedIndices).filter(s -> s.isEmpty() || s.charAt(0) != '-'),
Arrays.stream(selectedIndices).filter(s -> !s.isEmpty() && s.charAt(0) == '-')
).collect(Collectors.toUnmodifiableList());

Set<String> result = null;
for (int i = 0; i < selectedIndices.length; i++) {
Expand Down

0 comments on commit 4ea9c63

Please sign in to comment.