Suppress false-positive inspection warnings /

This commit is contained in:
Trustin Lee 2012-11-12 09:05:16 +09:00
parent a07fb94fe7
commit 61d872d6e2
2 changed files with 3 additions and 2 deletions

View File

@ -60,6 +60,7 @@ final class UTF8Output {
12, 36, 12, 12, 12, 36, 12, 12, 12, 12, 12, 36, 12, 36, 12, 12, 12, 36, 12, 12, 12, 12, 12, 36, 12, 12, 12, 36, 12, 12, 12, 12, 12, 36, 12, 36, 12, 12, 12, 36, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12 }; 12, 12, 12, 12, 12, 12 };
@SuppressWarnings("RedundantFieldInitialization")
private int state = UTF8_ACCEPT; private int state = UTF8_ACCEPT;
private int codep; private int codep;

View File

@ -17,10 +17,10 @@ package io.netty.util;
import io.netty.logging.InternalLogger; import io.netty.logging.InternalLogger;
import io.netty.logging.InternalLoggerFactory; import io.netty.logging.InternalLoggerFactory;
import io.netty.monitor.ValueDistributionMonitor;
import io.netty.monitor.EventRateMonitor; import io.netty.monitor.EventRateMonitor;
import io.netty.monitor.MonitorName; import io.netty.monitor.MonitorName;
import io.netty.monitor.MonitorRegistry; import io.netty.monitor.MonitorRegistry;
import io.netty.monitor.ValueDistributionMonitor;
import io.netty.util.internal.DetectionUtil; import io.netty.util.internal.DetectionUtil;
import io.netty.util.internal.SharedResourceMisuseDetector; import io.netty.util.internal.SharedResourceMisuseDetector;
@ -508,7 +508,7 @@ public class HashedWheelTimer implements Timer {
// it to a temporary list - we will reschedule it in a // it to a temporary list - we will reschedule it in a
// separate loop. // separate loop.
if (slipped == null) { if (slipped == null) {
slipped = new ArrayList<HashedWheelTimer.HashedWheelTimeout>(); slipped = new ArrayList<HashedWheelTimeout>();
} }
slipped.add(timeout); slipped.add(timeout);
} }