You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2021/01/17 18:29:41 UTC

[GitHub] [commons-logging] arturobernalg commented on a change in pull request #34: Minor Improvement:

arturobernalg commented on a change in pull request #34:
URL: https://github.com/apache/commons-logging/pull/34#discussion_r559219917



##########
File path: src/main/java/org/apache/commons/logging/LogSource.java
##########
@@ -215,6 +215,6 @@ static public Log makeNewLogInstance(final String name) {
      * all logs known to me.
      */
     static public String[] getLogNames() {
-        return (String[]) logs.keySet().toArray(new String[logs.size()]);
+        return (String[]) logs.keySet().toArray(new String[0]);

Review comment:
       Changed. Idem with LogFactoryImpl.java




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org