Skip to content

Commit db153f5

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 001c491 commit db153f5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.elasticsearch.cluster.metadata.InferenceFieldMetadata;
2626
import org.elasticsearch.common.Strings;
2727
import org.elasticsearch.common.bytes.BytesReference;
28-
import org.elasticsearch.common.logging.DeprecationCategory;
2928
import org.elasticsearch.common.xcontent.XContentHelper;
3029
import org.elasticsearch.common.xcontent.XContentParserUtils;
3130
import org.elasticsearch.common.xcontent.support.XContentMapValues;
@@ -169,7 +168,8 @@ public static BiConsumer<String, MappingParserContext> validateParserContext(Str
169168
return (n, c) -> {
170169
if (c.getIndexSettings().getIndexVersionCreated().before(NEW_SPARSE_VECTOR)) {
171170
throw new UnsupportedOperationException(UNSUPPORTED_INDEX_MESSAGE);
172-
};
171+
}
172+
;
173173
if (InferenceMetadataFieldsMapper.isEnabled(c.getIndexSettings().getSettings()) == false) {
174174
notInMultiFields(type).accept(n, c);
175175
}

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,7 @@ public void testOldIndexSemanticTextSparseVersionRaisesError() throws IOExceptio
446446
assertOldIndexUnsupported(fieldMapping);
447447
}
448448

449-
private void assertOldIndexUnsupported(
450-
XContentBuilder fieldMapping
451-
) {
449+
private void assertOldIndexUnsupported(XContentBuilder fieldMapping) {
452450

453451
MapperParsingException exception = assertThrows(
454452
MapperParsingException.class,

0 commit comments

Comments
 (0)