1
0

Fix compiler warnings

This commit is contained in:
Gary Gregory
2023-11-19 16:25:42 -05:00
parent a06ae06925
commit 66c2290ed7

View File

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