Fix method naming / Make super method final
This commit is contained in:
parent
76eb40a4d2
commit
d385cba41c
@ -40,14 +40,14 @@ public class SctpInboundByteStreamHandler extends ChannelInboundMessageHandlerAd
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean acceptInboundMessage(Object msg) throws Exception {
|
public final boolean acceptInboundMessage(Object msg) throws Exception {
|
||||||
if (super.acceptInboundMessage(msg)) {
|
if (super.acceptInboundMessage(msg)) {
|
||||||
return isDecodable((SctpMessage) msg);
|
return acceptInboundMessage((SctpMessage) msg);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isDecodable(SctpMessage msg) {
|
protected boolean acceptInboundMessage(SctpMessage msg) {
|
||||||
return msg.protocolIdentifier() == protocolIdentifier && msg.streamIdentifier() == streamIdentifier;
|
return msg.protocolIdentifier() == protocolIdentifier && msg.streamIdentifier() == streamIdentifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user