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
commit 66c2290ed7441aef9580ecac4a6826cd90b00a27 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Nov 19 16:25:42 2023 -0500 Fix compiler warnings --- src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java b/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java index abc2acf..59c5f1e 100644 --- a/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java +++ b/src/main/java/org/apache/commons/logging/impl/LogFactoryImpl.java @@ -250,7 +250,7 @@ public class LogFactoryImpl extends LogFactory { /** * Configuration attributes. */ - protected Hashtable attributes = new Hashtable(); + protected Hashtable<String, Object> attributes = new Hashtable<>(); /** * The {@link org.apache.commons.logging.Log} instances that have @@ -666,7 +666,7 @@ public class LogFactoryImpl extends LogFactory { */ @Override public String[] getAttributeNames() { - return (String[]) attributes.keySet().toArray(EMPTY_STRING_ARRAY); + return attributes.keySet().toArray(EMPTY_STRING_ARRAY); } /**