diff --git a/handler/src/main/java/io/netty/handler/traffic/TrafficCounter.java b/handler/src/main/java/io/netty/handler/traffic/TrafficCounter.java index b7a3610681..129535d52c 100644 --- a/handler/src/main/java/io/netty/handler/traffic/TrafficCounter.java +++ b/handler/src/main/java/io/netty/handler/traffic/TrafficCounter.java @@ -246,9 +246,6 @@ public class TrafficCounter { * the checkInterval in millisecond between two computations. */ public TrafficCounter(ScheduledExecutorService executor, String name, long checkInterval) { - if (executor == null) { - throw new NullPointerException("executor"); - } if (name == null) { throw new NullPointerException("name"); } @@ -281,9 +278,6 @@ public class TrafficCounter { if (trafficShapingHandler == null) { throw new IllegalArgumentException("trafficShapingHandler"); } - if (executor == null) { - throw new NullPointerException("executor"); - } if (name == null) { throw new NullPointerException("name"); }