Skip to content

Commit 7a68727

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 820ea84 commit 7a68727

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

server/src/main/java/org/elasticsearch/index/mapper/vectors/SparseVectorFieldMapper.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,8 @@ public SparseVectorFieldMapper build(MapperBuilderContext context) {
146146
}
147147

148148
private boolean indexOptionsSerializerCheck(boolean includeDefaults, boolean isConfigured, IndexOptions value) {
149-
return (
150-
indexVersionSupportsDefaultPruningConfig(indexVersion) && (
151-
includeDefaults || (value == null || IndexOptions.isDefaultOptions(value, indexVersion)) == false
152-
)
153-
);
149+
return (indexVersionSupportsDefaultPruningConfig(indexVersion)
150+
&& (includeDefaults || (value == null || IndexOptions.isDefaultOptions(value, indexVersion)) == false));
154151
}
155152
}
156153

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ public void testDefaultsWithIncludeDefaults() throws Exception {
217217
orig.endObject();
218218

219219
XContentBuilder withDefaults = JsonXContent.contentBuilder().startObject();
220-
createMapperService(fieldMapping(this::minimalMappingWithExplicitDefaults)).documentMapper().mapping()
220+
createMapperService(fieldMapping(this::minimalMappingWithExplicitDefaults)).documentMapper()
221+
.mapping()
221222
.toXContent(withDefaults, INCLUDE_DEFAULTS);
222223
withDefaults.endObject();
223224

0 commit comments

Comments
 (0)