Remove BytesRef usage from WatcherXContentParser (elastic/x-pack-elasticsearch#4024)
This conforms WatcherXContentParser for the changes in
Original commit: elastic/x-pack-elasticsearch@7971f63b122f5492b13bc0322b1ae1ad0381df6b
@@ -18,6 +18,7 @@ import org.elasticsearch.xpack.core.watcher.common.secret.Secret;
import org.elasticsearch.xpack.core.watcher.crypto.CryptoService;
import java.io.IOException;
+import java.nio.CharBuffer;
import java.time.Clock;
import java.util.List;
import java.util.Map;
@@ -151,13 +152,13 @@ public class WatcherXContentParser implements XContentParser {
}
@Override
- public BytesRef utf8BytesOrNull() throws IOException {
- return parser.utf8BytesOrNull();
+ public CharBuffer charBufferOrNull() throws IOException {
+ return parser.charBufferOrNull();
}
@Override
- public BytesRef utf8Bytes() throws IOException {
- return parser.utf8Bytes();
+ public CharBuffer charBuffer() throws IOException {
+ return parser.charBuffer();
}
@Override
