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-logging.git


The following commit(s) were added to refs/heads/master by this push:
     new 6cad8fc  Fix generics warnings in tests
6cad8fc is described below

commit 6cad8fc3385d81aef9e521bfe1743f8b709f0002
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Aug 14 08:41:04 2024 -0400

    Fix generics warnings in tests
---
 src/test/java/org/apache/commons/logging/jdk14/TestHandler.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/logging/jdk14/TestHandler.java 
b/src/test/java/org/apache/commons/logging/jdk14/TestHandler.java
index e4f72ae..82790b1 100644
--- a/src/test/java/org/apache/commons/logging/jdk14/TestHandler.java
+++ b/src/test/java/org/apache/commons/logging/jdk14/TestHandler.java
@@ -28,7 +28,7 @@ import java.util.logging.LogRecord;
 public class TestHandler extends Handler {
 
     // The set of logged records for this handler
-    private final List records = new ArrayList();
+    private final List<LogRecord> records = new ArrayList<>();
 
     @Override
     public void close() {
@@ -44,7 +44,7 @@ public class TestHandler extends Handler {
         records.add(record);
     }
 
-    public Iterator records() {
+    public Iterator<LogRecord> records() {
         return records.iterator();
     }
 

Reply via email to