We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b0d51 commit 311be61Copy full SHA for 311be61
src/main/qpid/org/apache/qpid/protonj2/buffer/netty/ProtonBufferToNetty5Adapter.java
@@ -968,12 +968,12 @@ public T first() {
968
969
@SuppressWarnings("unchecked")
970
@Override
971
- public T next() {
+ public <N extends Next & BufferComponent> N next() {
972
if (current != null) {
973
current = accessor.next();
974
}
975
976
- return current != null ? (T) this : null;
+ return current != null ? (N) this : null;
977
978
979
@@ -1067,6 +1067,8 @@ public BufferComponent skipWritableBytes(int byteCount) {
1067
current.advanceWriteOffset(byteCount);
1068
return this;
1069
1070
+
1071
1072
1073
1074
private final static class ProtonByteCursorAdapter implements ByteCursor {
0 commit comments