Skip to content

Commit d0a3365

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 529a510 commit d0a3365

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

server/src/main/java/org/elasticsearch/index/mapper/flattened/FlattenedFieldSyntheticWriterHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private KeyValue(final String value, final Prefix prefix, final String leaf) {
136136
}
137137

138138
private KeyValue(final String[] key, final String value) {
139-
this(value, new Prefix(key), key[key.length-1]);
139+
this(value, new Prefix(key), key[key.length - 1]);
140140
}
141141

142142
public String leaf() {

server/src/test/java/org/elasticsearch/index/mapper/flattened/FlattenedFieldSyntheticWriterHelperTests.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,7 @@ public void testScalarObjectMismatchInNestedObject() throws IOException {
225225
final FlattenedFieldSyntheticWriterHelper writer = new FlattenedFieldSyntheticWriterHelper(new SortedSetSortedKeyedValues(dv));
226226
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
227227
final XContentBuilder builder = new XContentBuilder(XContentType.JSON.xContent(), baos);
228-
final List<byte[]> bytes = List.of(
229-
"a.b" + '\0' + "10",
230-
"a.b.c" + '\0' + "20"
231-
)
228+
final List<byte[]> bytes = List.of("a.b" + '\0' + "10", "a.b.c" + '\0' + "20")
232229
.stream()
233230
.map(x -> x.getBytes(StandardCharsets.UTF_8))
234231
.collect(Collectors.toList());
@@ -249,7 +246,6 @@ public void testScalarObjectMismatchInNestedObject() throws IOException {
249246
assertEquals("{\"a\":{\"b\":\"10\",\"b.c\":\"20\"}}", baos.toString(StandardCharsets.UTF_8));
250247
}
251248

252-
253249
private class SortedSetSortedKeyedValues implements FlattenedFieldSyntheticWriterHelper.SortedKeyedValues {
254250
private final SortedSetDocValues dv;
255251
private int seen = 0;

0 commit comments

Comments
 (0)