Skip to content

Commit a74b6c9

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 2cc4de6 commit a74b6c9

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

server/src/test/java/org/elasticsearch/index/codec/tsdb/TsdbDocValueBwcTests.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import java.util.Arrays;
5151
import java.util.Locale;
5252
import java.util.Map;
53-
import java.util.function.Consumer;
5453
import java.util.function.IntSupplier;
5554

5655
import static org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests.TestES819TSDBDocValuesFormatVersion0;
@@ -68,12 +67,7 @@ public void testMixedIndex() throws Exception {
6867
public void testMixedIndexDocValueVersion0ToCurrent() throws Exception {
6968
var oldCodec = TestUtil.alwaysDocValuesFormat(new TestES819TSDBDocValuesFormatVersion0());
7069
var newCodec = TestUtil.alwaysDocValuesFormat(new ES819TSDBDocValuesFormat());
71-
testMixedIndex(
72-
oldCodec,
73-
newCodec,
74-
this::assertVersion819,
75-
this::assertVersion819
76-
);
70+
testMixedIndex(oldCodec, newCodec, this::assertVersion819, this::assertVersion819);
7771
}
7872

7973
public void testMixedIndex816To900Lucene101() throws Exception {
@@ -98,7 +92,8 @@ public DocValuesFormat getDocValuesFormatForField(String field) {
9892
testMixedIndex(oldCodec, newCodec);
9993
}
10094

101-
void assertFieldInfoDocValuesFormat(DirectoryReader reader, String expectedSuffix, String expectedFormat) throws IOException, NoSuchFieldException, IllegalAccessException {
95+
void assertFieldInfoDocValuesFormat(DirectoryReader reader, String expectedSuffix, String expectedFormat) throws IOException,
96+
NoSuchFieldException, IllegalAccessException {
10297
// Assert per field format field info attributes:
10398
// (XPerFieldDocValuesFormat must produce the same attributes as PerFieldDocValuesFormat for BWC.
10499
// Otherwise, doc values fields may disappear)
@@ -121,12 +116,13 @@ void assertVersion819(DirectoryReader reader) throws IOException, NoSuchFieldExc
121116
assertFieldInfoDocValuesFormat(reader, "0", "ES819TSDB");
122117
}
123118

124-
void testMixedIndex(Codec oldCodec, Codec newCodec) throws IOException, NoSuchFieldException, IllegalAccessException, ClassNotFoundException {
119+
void testMixedIndex(Codec oldCodec, Codec newCodec) throws IOException, NoSuchFieldException, IllegalAccessException,
120+
ClassNotFoundException {
125121
testMixedIndex(oldCodec, newCodec, this::assertVersion87, this::assertVersion819);
126122
}
127123

128-
void testMixedIndex(Codec oldCodec, Codec newCodec, VersionAssert assertOldVersion, VersionAssert assertNewVersion) throws IOException, NoSuchFieldException, IllegalAccessException,
129-
ClassNotFoundException {
124+
void testMixedIndex(Codec oldCodec, Codec newCodec, VersionAssert assertOldVersion, VersionAssert assertNewVersion) throws IOException,
125+
NoSuchFieldException, IllegalAccessException, ClassNotFoundException {
130126
String timestampField = "@timestamp";
131127
String hostnameField = "host.name";
132128
long baseTimestamp = 1704067200000L;

0 commit comments

Comments
 (0)