Return correct type on retain(..)
This commit is contained in:
parent
c987dd556e
commit
9b89c303cc
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user