Skip to content

Commit 4b4eaf4

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 012ac7f commit 4b4eaf4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

server/src/main/java/org/elasticsearch/index/mapper/Mapper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,5 @@ public boolean supportStoringArrayOffsets(DocumentParserContext context) {
217217
return false;
218218
}
219219

220-
public void handleEmptyArray(DocumentParserContext context) {
221-
}
220+
public void handleEmptyArray(DocumentParserContext context) {}
222221
}

server/src/test/java/org/elasticsearch/index/mapper/ArrayOffsetContextTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void testOffsets() throws IOException {
3232

3333
var binaryDocValues = parserContext.doc().getField("field");
3434
int[] offsetToOrd = parseOffsetArray(new ByteArrayStreamInput(binaryDocValues.binaryValue().bytes));
35-
assertArrayEquals(new int[]{0, 0, 1, 2, 0, 1}, offsetToOrd);
35+
assertArrayEquals(new int[] { 0, 0, 1, 2, 0, 1 }, offsetToOrd);
3636
}
3737

3838
public void testOffsetsWithNull() throws IOException {
@@ -49,7 +49,7 @@ public void testOffsetsWithNull() throws IOException {
4949

5050
var binaryDocValues = parserContext.doc().getField("field");
5151
int[] offsetToOrd = parseOffsetArray(new ByteArrayStreamInput(binaryDocValues.binaryValue().bytes));
52-
assertArrayEquals(new int[]{-1, 0, 1, 2, -1, 1}, offsetToOrd);
52+
assertArrayEquals(new int[] { -1, 0, 1, 2, -1, 1 }, offsetToOrd);
5353
}
5454

5555
public void testEmptyOffset() throws IOException {
@@ -61,7 +61,7 @@ public void testEmptyOffset() throws IOException {
6161

6262
var binaryDocValues = parserContext.doc().getField("field");
6363
int[] offsetToOrd = parseOffsetArray(new ByteArrayStreamInput(binaryDocValues.binaryValue().bytes));
64-
assertArrayEquals(new int[]{}, offsetToOrd);
64+
assertArrayEquals(new int[] {}, offsetToOrd);
6565
}
6666

6767
}

0 commit comments

Comments
 (0)