From d9b14a0b3735ef7bb60ea3048bcfbbf3318a3804 Mon Sep 17 00:00:00 2001 From: vibul Date: Tue, 13 Dec 2011 12:20:51 +1100 Subject: [PATCH] Removed compile warnings. --- src/test/java/io/netty/buffer/ChannelBuffersTest.java | 2 +- src/test/java/io/netty/channel/socket/http/NettyTestUtils.java | 3 --- .../handler/codec/serialization/SwitchableInputStreamTest.java | 1 - src/test/java/io/netty/logging/InternalLoggerFactoryTest.java | 1 - src/test/java/io/netty/logging/JBossLoggerTest.java | 1 - src/test/java/io/netty/logging/JdkLoggerTest.java | 1 - src/test/java/io/netty/logging/Log4JLoggerTest.java | 1 - .../java/io/netty/util/internal/StackTraceSimplifierTest.java | 1 - 8 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/test/java/io/netty/buffer/ChannelBuffersTest.java b/src/test/java/io/netty/buffer/ChannelBuffersTest.java index 79ef19ec81..b0b4280c66 100644 --- a/src/test/java/io/netty/buffer/ChannelBuffersTest.java +++ b/src/test/java/io/netty/buffer/ChannelBuffersTest.java @@ -27,7 +27,7 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; -import org.easymock.classextension.EasyMock; +import org.easymock.EasyMock; import org.junit.Test; /** diff --git a/src/test/java/io/netty/channel/socket/http/NettyTestUtils.java b/src/test/java/io/netty/channel/socket/http/NettyTestUtils.java index 3e2b326139..58ada19ecb 100644 --- a/src/test/java/io/netty/channel/socket/http/NettyTestUtils.java +++ b/src/test/java/io/netty/channel/socket/http/NettyTestUtils.java @@ -84,15 +84,12 @@ public class NettyTestUtils { return false; } - int position = 0; while (expected.readable()) { byte expectedByte = expected.readByte(); byte actualByte = actual.readByte(); if (expectedByte != actualByte) { return false; } - - position ++; } return true; diff --git a/src/test/java/io/netty/handler/codec/serialization/SwitchableInputStreamTest.java b/src/test/java/io/netty/handler/codec/serialization/SwitchableInputStreamTest.java index f92e11e7c3..195da53a37 100644 --- a/src/test/java/io/netty/handler/codec/serialization/SwitchableInputStreamTest.java +++ b/src/test/java/io/netty/handler/codec/serialization/SwitchableInputStreamTest.java @@ -16,7 +16,6 @@ package io.netty.handler.codec.serialization; import static org.easymock.EasyMock.*; -import static org.easymock.classextension.EasyMock.*; import static org.junit.Assert.*; import java.io.InputStream; diff --git a/src/test/java/io/netty/logging/InternalLoggerFactoryTest.java b/src/test/java/io/netty/logging/InternalLoggerFactoryTest.java index b9771d335c..b3a898d725 100644 --- a/src/test/java/io/netty/logging/InternalLoggerFactoryTest.java +++ b/src/test/java/io/netty/logging/InternalLoggerFactoryTest.java @@ -16,7 +16,6 @@ package io.netty.logging; import static org.easymock.EasyMock.*; -import static org.easymock.classextension.EasyMock.*; import static org.junit.Assert.*; import org.junit.After; diff --git a/src/test/java/io/netty/logging/JBossLoggerTest.java b/src/test/java/io/netty/logging/JBossLoggerTest.java index 39cdfd39b8..7c3c8d48f7 100644 --- a/src/test/java/io/netty/logging/JBossLoggerTest.java +++ b/src/test/java/io/netty/logging/JBossLoggerTest.java @@ -16,7 +16,6 @@ package io.netty.logging; import static org.easymock.EasyMock.*; -import static org.easymock.classextension.EasyMock.*; import static org.junit.Assert.*; import org.junit.Test; diff --git a/src/test/java/io/netty/logging/JdkLoggerTest.java b/src/test/java/io/netty/logging/JdkLoggerTest.java index 213c963024..e742700935 100644 --- a/src/test/java/io/netty/logging/JdkLoggerTest.java +++ b/src/test/java/io/netty/logging/JdkLoggerTest.java @@ -16,7 +16,6 @@ package io.netty.logging; import static org.easymock.EasyMock.*; -import static org.easymock.classextension.EasyMock.*; import static org.junit.Assert.*; import java.util.logging.Level; diff --git a/src/test/java/io/netty/logging/Log4JLoggerTest.java b/src/test/java/io/netty/logging/Log4JLoggerTest.java index 933426aaa6..4ee31ff454 100644 --- a/src/test/java/io/netty/logging/Log4JLoggerTest.java +++ b/src/test/java/io/netty/logging/Log4JLoggerTest.java @@ -16,7 +16,6 @@ package io.netty.logging; import static org.easymock.EasyMock.*; -import static org.easymock.classextension.EasyMock.*; import static org.junit.Assert.*; import org.junit.Test; diff --git a/src/test/java/io/netty/util/internal/StackTraceSimplifierTest.java b/src/test/java/io/netty/util/internal/StackTraceSimplifierTest.java index 3f58b475ca..de7eb91181 100644 --- a/src/test/java/io/netty/util/internal/StackTraceSimplifierTest.java +++ b/src/test/java/io/netty/util/internal/StackTraceSimplifierTest.java @@ -16,7 +16,6 @@ package io.netty.util.internal; import static org.easymock.EasyMock.*; -import static org.easymock.classextension.EasyMock.*; import static org.junit.Assert.*; import io.netty.buffer.ChannelBuffer;