XContent: Adapt to new method on parser (elastic/x-pack-elasticsearch#3797)
Properly delegates `XContentParser#getDeprecationHandler`.
Original commit: elastic/x-pack-elasticsearch@ff44b7202a9deb1008a2f471b109d36b11e581db
@@ -8,6 +8,7 @@ package org.elasticsearch.xpack.core.watcher.support.xcontent;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.common.Nullable;
+import org.elasticsearch.common.xcontent.DeprecationHandler;
import org.elasticsearch.common.xcontent.NamedXContentRegistry;
import org.elasticsearch.common.xcontent.XContentLocation;
import org.elasticsearch.common.xcontent.XContentParser;
@@ -293,4 +294,9 @@ public class WatcherXContentParser implements XContentParser {
public void close() throws ElasticsearchException {
parser.close();
}
+
+ @Override
+ public DeprecationHandler getDeprecationHandler() {
+ return parser.getDeprecationHandler();
+ }
}
