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 2023/11/26 15:15:06 UTC
(commons-logging) branch master updated: Fix generics compiler warnings
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 6400cd0 Fix generics compiler warnings
6400cd0 is described below
commit 6400cd0bc0eec47080620bc55d5f2fbc923cf5ba
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 26 10:15:02 2023 -0500
Fix generics compiler warnings
---
.../java/org/apache/commons/logging/simple/DecoratedSimpleLog.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/logging/simple/DecoratedSimpleLog.java b/src/test/java/org/apache/commons/logging/simple/DecoratedSimpleLog.java
index 4f6c800..33c1a97 100644
--- a/src/test/java/org/apache/commons/logging/simple/DecoratedSimpleLog.java
+++ b/src/test/java/org/apache/commons/logging/simple/DecoratedSimpleLog.java
@@ -36,7 +36,7 @@ public class DecoratedSimpleLog extends SimpleLog {
private static final long serialVersionUID = 196544280770017153L;
// Cache of logged records
- protected ArrayList cache = new ArrayList();
+ protected ArrayList<LogRecord> cache = new ArrayList<>();
public DecoratedSimpleLog(final String name) {
super(name);
@@ -48,7 +48,7 @@ public class DecoratedSimpleLog extends SimpleLog {
}
// Return cache
- public List getCache() {
+ public List<LogRecord> getCache() {
return this.cache;
}