apache/mina — pull request #3 by orfjackal (2013-07-17 15:48:44+00:00)
Title: Fixed IoBuffer.Pointer.setPosition to work in O(1) instead of O(n) in the common case

IoBuffer.Pointer.setPosition used to always iterate through the singly linked list starting from the very beginning. Here is a fix and a test to reproduce the issue.

There are also some other small refactorings and javadoc fixes (that IntelliJ IDEA's static analysis found - you should try running it also for the rest of the project).

P.S: org.apache.mina.codec.IoBuffer#mark is broken. I'll file an issue for that.