Skip to content

Commit

Permalink
Casting to parent Buffer (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalkoren authored Dec 27, 2018
1 parent 863822f commit 2a28fe7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.jctools.queues.atomic.MpmcAtomicArrayQueue;

import javax.annotation.Nullable;
import java.nio.Buffer;
import java.nio.CharBuffer;


Expand All @@ -47,7 +48,7 @@ public CharBuffer createInstance() {
new Resetter<CharBuffer>() {
@Override
public void recycle(CharBuffer object) {
object.clear();
((Buffer) object).clear();
}
});

Expand Down

0 comments on commit 2a28fe7

Please sign in to comment.