tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r699645 - /tomcat/trunk/java/org/apache/juli/logging/LogFactory.java
Date Sat, 27 Sep 2008 13:42:43 GMT
Author: markt
Date: Sat Sep 27 06:42:43 2008
New Revision: 699645

URL: http://svn.apache.org/viewvc?rev=699645&view=rev
Log:
Fix cast error reported by Find Bugs

Modified:
    tomcat/trunk/java/org/apache/juli/logging/LogFactory.java

Modified: tomcat/trunk/java/org/apache/juli/logging/LogFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/juli/logging/LogFactory.java?rev=699645&r1=699644&r2=699645&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/logging/LogFactory.java (original)
+++ tomcat/trunk/java/org/apache/juli/logging/LogFactory.java Sat Sep 27 06:42:43 2008
@@ -199,7 +199,8 @@
      * length array is returned.
      */
     public String[] getAttributeNames() {
-        return (String[])logConfig.keySet().toArray();
+        String result[] = new String[logConfig.size()];
+        return logConfig.keySet().toArray(result);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message