diff --git a/libs/x-content/src/main/java/org/elasticsearch/xcontent/AbstractObjectParser.java b/libs/x-content/src/main/java/org/elasticsearch/xcontent/AbstractObjectParser.java index 244e1270fe530..140ee9357dd08 100644 --- a/libs/x-content/src/main/java/org/elasticsearch/xcontent/AbstractObjectParser.java +++ b/libs/x-content/src/main/java/org/elasticsearch/xcontent/AbstractObjectParser.java @@ -10,6 +10,7 @@ package org.elasticsearch.xcontent; import org.elasticsearch.core.CheckedFunction; +import org.elasticsearch.core.UpdateForV10; import org.elasticsearch.xcontent.ObjectParser.NamedObjectParser; import org.elasticsearch.xcontent.ObjectParser.ValueType; @@ -230,11 +231,13 @@ public void declareDoubleOrNull(BiConsumer consumer, double nullV ); } + @UpdateForV10(owner = UpdateForV10.Owner.CORE_INFRA) // https://github.com/elastic/elasticsearch/issues/130797 public void declareLong(BiConsumer consumer, ParseField field) { // Using a method reference here angers some compilers declareField(consumer, p -> p.longValue(), field, ValueType.LONG); } + @UpdateForV10(owner = UpdateForV10.Owner.CORE_INFRA) // https://github.com/elastic/elasticsearch/issues/130797 public void declareLongOrNull(BiConsumer consumer, long nullValue, ParseField field) { // Using a method reference here angers some compilers declareField( @@ -245,6 +248,7 @@ public void declareLongOrNull(BiConsumer consumer, long nullValue, ); } + @UpdateForV10(owner = UpdateForV10.Owner.CORE_INFRA) // https://github.com/elastic/elasticsearch/issues/130797 public void declareInt(BiConsumer consumer, ParseField field) { // Using a method reference here angers some compilers declareField(consumer, p -> p.intValue(), field, ValueType.INT); @@ -253,6 +257,7 @@ public void declareInt(BiConsumer consumer, ParseField field) { /** * Declare an integer field that parses explicit {@code null}s in the json to a default value. */ + @UpdateForV10(owner = UpdateForV10.Owner.CORE_INFRA) // https://github.com/elastic/elasticsearch/issues/130797 public void declareIntOrNull(BiConsumer consumer, int nullValue, ParseField field) { declareField( consumer, @@ -320,10 +325,12 @@ public void declareFloatArray(BiConsumer> consumer, ParseFiel declareFieldArray(consumer, (p, c) -> p.floatValue(), field, ValueType.FLOAT_ARRAY); } + @UpdateForV10(owner = UpdateForV10.Owner.CORE_INFRA) // https://github.com/elastic/elasticsearch/issues/130797 public void declareLongArray(BiConsumer> consumer, ParseField field) { declareFieldArray(consumer, (p, c) -> p.longValue(), field, ValueType.LONG_ARRAY); } + @UpdateForV10(owner = UpdateForV10.Owner.CORE_INFRA) // https://github.com/elastic/elasticsearch/issues/130797 public void declareIntArray(BiConsumer> consumer, ParseField field) { declareFieldArray(consumer, (p, c) -> p.intValue(), field, ValueType.INT_ARRAY); }