From b3b8a6f9f635912c64c66eb61e664b77550cc9bd Mon Sep 17 00:00:00 2001 From: Faisal Hameed Date: Tue, 8 Dec 2015 00:23:32 +0500 Subject: [PATCH] pmd:RedundantFieldInitializer Redundant Field Initializer --- .../java/com/corundumstudio/socketio/Configuration.java | 6 +++--- src/main/java/com/corundumstudio/socketio/SocketConfig.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/corundumstudio/socketio/Configuration.java b/src/main/java/com/corundumstudio/socketio/Configuration.java index 7d4468b5..99ba15ca 100644 --- a/src/main/java/com/corundumstudio/socketio/Configuration.java +++ b/src/main/java/com/corundumstudio/socketio/Configuration.java @@ -34,11 +34,11 @@ public class Configuration { private List transports = Arrays.asList(Transport.WEBSOCKET, Transport.POLLING); - private int bossThreads = 0; // 0 = current_processors_amount * 2 - private int workerThreads = 0; // 0 = current_processors_amount * 2 + private int bossThreads; // 0 = current_processors_amount * 2 + private int workerThreads; // 0 = current_processors_amount * 2 private boolean useLinuxNativeEpoll; - private boolean allowCustomRequests = false; + private boolean allowCustomRequests; private int upgradeTimeout = 10000; private int pingTimeout = 60000; diff --git a/src/main/java/com/corundumstudio/socketio/SocketConfig.java b/src/main/java/com/corundumstudio/socketio/SocketConfig.java index 2c6e9c7f..0cc50ae0 100644 --- a/src/main/java/com/corundumstudio/socketio/SocketConfig.java +++ b/src/main/java/com/corundumstudio/socketio/SocketConfig.java @@ -29,11 +29,11 @@ public class SocketConfig { private int tcpReceiveBufferSize = -1; - private boolean tcpKeepAlive = false; + private boolean tcpKeepAlive; private int soLinger = -1; - private boolean reuseAddress = false; + private boolean reuseAddress; private int acceptBackLog = 1024;