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
|
||||
public boolean acceptInboundMessage(Object msg) throws Exception {
|
||||
public final boolean acceptInboundMessage(Object msg) throws Exception {
|
||||
if (super.acceptInboundMessage(msg)) {
|
||||
return isDecodable((SctpMessage) msg);
|
||||
return acceptInboundMessage((SctpMessage) msg);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected boolean isDecodable(SctpMessage msg) {
|
||||
protected boolean acceptInboundMessage(SctpMessage msg) {
|
||||
return msg.protocolIdentifier() == protocolIdentifier && msg.streamIdentifier() == streamIdentifier;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user