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


The following commit(s) were added to refs/heads/master by this push:
     new b91b662e Use an import instead of a FQCN
b91b662e is described below

commit b91b662eed9cb778c5b02962876d3eb344ed7070
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Mon May 19 08:11:38 2025 -0400

    Use an import instead of a FQCN
---
 .../java/org/apache/commons/pool3/impl/TestGenericObjectPool.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java 
b/src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java
index a730a44c..5058e74d 100644
--- a/src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java
+++ b/src/test/java/org/apache/commons/pool3/impl/TestGenericObjectPool.java
@@ -27,12 +27,14 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 import static org.junit.jupiter.api.Assertions.fail;
 
+import java.io.Serializable;
 import java.lang.management.ManagementFactory;
 import java.lang.ref.WeakReference;
 import java.nio.charset.UnsupportedCharsetException;
 import java.time.Duration;
 import java.time.Instant;
 import java.util.ArrayList;
+import java.util.Collections;
 import java.util.HashSet;
 import java.util.List;
 import java.util.NoSuchElementException;
@@ -1661,16 +1663,16 @@ public class TestGenericObjectPool extends 
TestBaseObjectPool {
 
         // InstantiationException
         assertThrows(IllegalArgumentException.class,
-                () -> 
genericObjectPool.setEvictionPolicyClassName(java.io.Serializable.class.getName()),
+                () -> 
genericObjectPool.setEvictionPolicyClassName(Serializable.class.getName()),
                 "setEvictionPolicyClassName must throw an error if the class 
name is invalid.");
 
         // IllegalAccessException
         assertThrows(IllegalArgumentException.class,
-                () -> 
genericObjectPool.setEvictionPolicyClassName(java.util.Collections.class.getName()),
+                () -> 
genericObjectPool.setEvictionPolicyClassName(Collections.class.getName()),
                 "setEvictionPolicyClassName must throw an error if the class 
name is invalid.");
 
         assertThrows(IllegalArgumentException.class,
-                () -> 
genericObjectPool.setEvictionPolicyClassName(java.lang.String.class.getName()),
+                () -> 
genericObjectPool.setEvictionPolicyClassName(String.class.getName()),
                 () -> "setEvictionPolicyClassName must throw an error if a 
class that does not implement EvictionPolicy is specified.");
 
         genericObjectPool.setEvictionPolicy(new TestEvictionPolicy<>());

Reply via email to