Return correct type on retain(..)

This commit is contained in:
Norman Maurer 2013-04-21 13:41:34 +02:00
parent c987dd556e
commit 9b89c303cc
3 changed files with 35 additions and 0 deletions

View File

@ -135,6 +135,18 @@ public final class SctpMessage extends DefaultByteBufHolder {
}
}
@Override
public SctpMessage retain() {
super.retain();
return this;
}
@Override
public SctpMessage retain(int increment) {
super.retain(increment);
return this;
}
@Override
public String toString() {
if (refCnt() == 0) {

View File

@ -37,4 +37,15 @@ public final class UdtMessage extends DefaultByteBufHolder {
return new UdtMessage(data().copy());
}
@Override
public UdtMessage retain() {
super.retain();
return this;
}
@Override
public UdtMessage retain(int increment) {
super.retain(increment);
return this;
}
}

View File

@ -55,6 +55,18 @@ public final class DatagramPacket extends DefaultByteBufHolder {
return new DatagramPacket(data().copy(), remoteAddress());
}
@Override
public DatagramPacket retain() {
super.retain();
return this;
}
@Override
public DatagramPacket retain(int increment) {
super.retain(increment);
return this;
}
@Override
public String toString() {
if (refCnt() == 0) {