diff --git a/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextField.java b/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextField.java index f0267d144b7b8..1c5c56b7b9da6 100644 --- a/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextField.java +++ b/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/mapper/SemanticTextField.java @@ -221,7 +221,6 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws args -> new InferenceResult((String) args[0], (ModelSettings) args[1], (List) args[2]) ); - @SuppressWarnings("unchecked") private static final ConstructingObjectParser CHUNKS_PARSER = new ConstructingObjectParser<>( CHUNKS_FIELD.getPreferredName(), true,