You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/09/24 02:21:18 UTC
[commons-pool] 02/03: Remove unused.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
commit 131642f42ed36b5e41f6b49702e30f620289d1aa
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 23 22:17:47 2020 -0400
Remove unused.
---
src/test/java/org/apache/commons/pool2/impl/TestEvictionTimer.java | 4 +---
.../org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/pool2/impl/TestEvictionTimer.java b/src/test/java/org/apache/commons/pool2/impl/TestEvictionTimer.java
index 33b38c2..0b71f52 100644
--- a/src/test/java/org/apache/commons/pool2/impl/TestEvictionTimer.java
+++ b/src/test/java/org/apache/commons/pool2/impl/TestEvictionTimer.java
@@ -17,13 +17,11 @@
package org.apache.commons.pool2.impl;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
-import java.lang.ref.WeakReference;
import java.lang.reflect.Field;
-import java.util.HashMap;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
diff --git a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
index e805a39..2514ab4 100644
--- a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
+++ b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
@@ -1067,7 +1067,7 @@ public class TestGenericKeyedObjectPool extends TestKeyedObjectPool {
* aware of this if you see a failure of this test.
*/
@SuppressWarnings({
- "rawtypes", "unchecked"
+ "rawtypes"
})
@Test(timeout=60000)
public void testBorrowObjectFairness() throws Exception {