Add missing final modifiers

This commit is contained in:
Trustin Lee 2012-11-10 02:19:11 +09:00
parent 8ad50a3e9c
commit a9cfde97f0
4 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
public class SctpMessageCompletionHandler extends ChannelInboundMessageHandlerAdapter<SctpMessage> { public class SctpMessageCompletionHandler extends ChannelInboundMessageHandlerAdapter<SctpMessage> {
private Map<Integer, ByteBuf> fragments = new HashMap<Integer, ByteBuf>(); private final Map<Integer, ByteBuf> fragments = new HashMap<Integer, ByteBuf>();
@Override @Override
public void messageReceived(ChannelHandlerContext ctx, SctpMessage msg) throws Exception { public void messageReceived(ChannelHandlerContext ctx, SctpMessage msg) throws Exception {

View File

@ -31,7 +31,7 @@ public final class WebSocketSslServerSslContext {
private static final InternalLogger logger = InternalLoggerFactory.getInstance(WebSocketSslServerSslContext.class); private static final InternalLogger logger = InternalLoggerFactory.getInstance(WebSocketSslServerSslContext.class);
private static final String PROTOCOL = "TLS"; private static final String PROTOCOL = "TLS";
private SSLContext _serverContext; private final SSLContext _serverContext;
/** /**
* Returns the singleton instance for this class * Returns the singleton instance for this class

View File

@ -31,7 +31,7 @@ import static io.netty.channel.ChannelOption.*;
*/ */
public class DefaultSctpChannelConfig extends DefaultChannelConfig implements SctpChannelConfig { public class DefaultSctpChannelConfig extends DefaultChannelConfig implements SctpChannelConfig {
private SctpChannel channel; private final SctpChannel channel;
public DefaultSctpChannelConfig(SctpChannel channel) { public DefaultSctpChannelConfig(SctpChannel channel) {
if (channel == null) { if (channel == null) {

View File

@ -18,8 +18,8 @@ package io.netty.channel.socket;
import com.sun.nio.sctp.Notification; import com.sun.nio.sctp.Notification;
public final class SctpNotificationEvent { public final class SctpNotificationEvent {
private Notification notification; private final Notification notification;
private Object attachment; private final Object attachment;
public SctpNotificationEvent(Notification notification, Object attachment) { public SctpNotificationEvent(Notification notification, Object attachment) {