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:
Nik Everett 2018-01-30 18:21:21 -05:00 committed by GitHub
parent 570411c2dc
commit 99081adfbf
1 changed files with 6 additions and 0 deletions

View File

@ -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();
}
}