Skip to content

Commit 110d04e

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent fb8623a commit 110d04e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static TransportVersion def(int id) {
292292
public static final TransportVersion SEARCH_SOURCE_EXCLUDE_VECTORS_PARAM = def(9_092_0_00);
293293
public static final TransportVersion SNAPSHOT_INDEX_SHARD_STATUS_MISSING_STATS = def(9_093_0_00);
294294
public static final TransportVersion SPARSE_VECTOR_FIELD_PRUNING_OPTIONS = def(9_094_0_00);
295-
295+
296296
/*
297297
* STOP! READ THIS FIRST! No, really,
298298
* ____ _____ ___ ____ _ ____ _____ _ ____ _____ _ _ ___ ____ _____ ___ ____ ____ _____ _

server/src/test/java/org/elasticsearch/index/mapper/vectors/SparseVectorFieldMapperTests.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,10 @@ public void testPruneMustBeBoolean() {
362362
})));
363363
assertThat(e.getMessage(), containsString("[index_options] failed to parse field [prune]"));
364364
assertThat(e.getCause().getCause(), instanceOf(IllegalArgumentException.class));
365-
assertThat(e.getCause().getCause().getMessage(), containsString("Failed to parse value [othervalue] as only [true] or [false] are allowed."));
365+
assertThat(
366+
e.getCause().getCause().getMessage(),
367+
containsString("Failed to parse value [othervalue] as only [true] or [false] are allowed.")
368+
);
366369
}
367370

368371
public void testPruningConfigurationIsMap() {
@@ -593,13 +596,7 @@ public void testTypeQueryFinalizationWithIndexExplicitDoNotPrune() throws Except
593596
MapperService mapperService = createMapperService(version, fieldMapping(this::mappingWithIndexOptionsPruneFalse));
594597

595598
// query should be pruned via explicit index options
596-
performTypeQueryFinalizationTest(
597-
mapperService,
598-
new SparseVectorFieldMapper.IndexOptions(false, null),
599-
null,
600-
null,
601-
false
602-
);
599+
performTypeQueryFinalizationTest(mapperService, new SparseVectorFieldMapper.IndexOptions(false, null), null, null, false);
603600
}
604601

605602
public void testTypeQueryFinalizationQueryOverridesPruning() throws Exception {

0 commit comments

Comments
 (0)