From 4cfe00d722ebaf1b19ce2dd75e8cfe548515e83c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=B7=E5=BE=B3=E7=88=86?= Date: Sun, 31 Jan 2021 10:33:00 +0800 Subject: [PATCH] [ISSUE #2642] Remove unused imports --- .../rocketmq/remoting/netty/NettyRemotingAbstractTest.java | 4 +--- .../rocketmq/remoting/netty/NettyRemotingClientTest.java | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstractTest.java b/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstractTest.java index 5330c900..a272d21d 100644 --- a/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstractTest.java +++ b/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstractTest.java @@ -27,8 +27,6 @@ import org.mockito.junit.MockitoJUnitRunner; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; -import static org.mockito.ArgumentMatchers.notNull; import static org.mockito.Mockito.when; @RunWith(MockitoJUnitRunner.class) @@ -98,7 +96,7 @@ public class NettyRemotingAbstractTest { public void testScanResponseTable() { int dummyId = 1; // mock timeout - ResponseFuture responseFuture = new ResponseFuture(null,dummyId, -1000, new InvokeCallback() { + ResponseFuture responseFuture = new ResponseFuture(null, dummyId, -1000, new InvokeCallback() { @Override public void operationComplete(final ResponseFuture responseFuture) { } diff --git a/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingClientTest.java b/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingClientTest.java index 6b5633df..4b38ce95 100644 --- a/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingClientTest.java +++ b/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingClientTest.java @@ -16,7 +16,6 @@ */ package org.apache.rocketmq.remoting.netty; -import java.lang.reflect.Field; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.junit.Test; -- GitLab