Add missing final modifiers
This commit is contained in:
parent
8ad50a3e9c
commit
a9cfde97f0
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user