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 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); } /**