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