Skip to content

Commit f0da074

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a2bc5fa commit f0da074

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

x-pack/plugin/logsdb/src/test/java/org/elasticsearch/xpack/logsdb/patternedtext/PatternTextDocValuesTests.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
import org.elasticsearch.test.ESTestCase;
1313

1414
import java.io.IOException;
15-
import java.util.ArrayList;
1615
import java.util.Arrays;
17-
import java.util.HashSet;
1816
import java.util.List;
1917
import java.util.Objects;
2018
import java.util.stream.Collectors;
@@ -118,9 +116,7 @@ static class SimpleSortedSetDocValues extends SortedSetDocValues {
118116
private int currDoc = -1;
119117

120118
SimpleSortedSetDocValues(String... docIdToValue) {
121-
ordToValues = Arrays.stream(docIdToValue).filter(Objects::nonNull)
122-
.collect(Collectors.toSet())
123-
.stream().sorted().toList();
119+
ordToValues = Arrays.stream(docIdToValue).filter(Objects::nonNull).collect(Collectors.toSet()).stream().sorted().toList();
124120
docToOrds = Arrays.stream(docIdToValue).map(v -> v == null ? null : ordToValues.indexOf(v)).toList();
125121
}
126122

0 commit comments

Comments
 (0)