XContent: Adapt to new method on parser (elastic/x-pack-elasticsearch#3797)
Properly delegates `XContentParser#getDeprecationHandler`. Original commit: elastic/x-pack-elasticsearch@45356d600a
This commit is contained in:
parent
570411c2dc
commit
99081adfbf
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue