Fix method naming / Make super method final

This commit is contained in:
Trustin Lee 2013-02-08 17:08:58 +09:00
parent 76eb40a4d2
commit d385cba41c

View File

@ -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;
}