Class ByteBufferJava9ApiPlugin


public class ByteBufferJava9ApiPlugin
extends AbstractCompilerPlugin
This plugin adds support for Java 9+ covariant returns type methods in java.nio.ByteBuffer. It adds following covariant return type (ByteBuffer) alternatives to Java8 apis: ByteBuffer position(int newPosition) ByteBuffer limit(int newLimit) ByteBuffer flip() ByteBuffer clear() ByteBuffer mark() ByteBuffer reset() ByteBuffer rewind() Implementation calls super and returns this (instance of ByteBuffer) plugin argument to control: 'desugar:enableJdk9ByteBufferApi=false'
Author:
DKimitsa