@ -122,10 +121,7 @@ final class ByteBufferConverter implements ConditionalGenericConverter {
@@ -122,10 +121,7 @@ final class ByteBufferConverter implements ConditionalGenericConverter {
@ -333,18 +332,14 @@ public class DefaultDataBuffer implements DataBuffer {
@@ -333,18 +332,14 @@ public class DefaultDataBuffer implements DataBuffer {
publicDefaultDataBufferslice(intindex,intlength){
checkIndex(index,length);
intoldPosition=this.byteBuffer.position();
// Explicit access via Buffer base type for compatibility
// with covariant return type on JDK 9's ByteBuffer...
Bufferbuffer=this.byteBuffer;
try{
buffer.position(index);
this.byteBuffer.position(index);
ByteBufferslice=this.byteBuffer.slice();
// Explicit cast for compatibility with covariant return type on JDK 9's ByteBuffer
@ -122,7 +122,6 @@ public class XmlEventDecoder extends AbstractDecoder<XMLEvent> {
@@ -122,7 +122,6 @@ public class XmlEventDecoder extends AbstractDecoder<XMLEvent> {
@Override
@SuppressWarnings({"rawtypes","unchecked","cast"})// XMLEventReader is Iterator<Object> on JDK 9
@ -137,7 +136,7 @@ public class XmlEventDecoder extends AbstractDecoder<XMLEvent> {
@@ -137,7 +136,7 @@ public class XmlEventDecoder extends AbstractDecoder<XMLEvent> {