activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r416631 - /incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java
Date Fri, 23 Jun 2006 08:21:32 GMT
Author: aco
Date: Fri Jun 23 01:21:32 2006
New Revision: 416631

URL: http://svn.apache.org/viewvc?rev=416631&view=rev
Log:
Fix 1.4 compatibility issue.

Modified:
    incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java

Modified: incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java?rev=416631&r1=416630&r2=416631&view=diff
==============================================================================
--- incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java
(original)
+++ incubator/activemq/trunk/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java
Fri Jun 23 01:21:32 2006
@@ -24,6 +24,7 @@
 import java.util.List;
 import java.util.ArrayList;
 import java.util.Collections;
+import java.util.Arrays;
 import java.lang.reflect.Method;
 import java.lang.reflect.Field;
 import java.lang.reflect.InvocationTargetException;
@@ -218,7 +219,7 @@
     public static Field[] getAllFields(Class targetClass) {
         List fieldList = new ArrayList();
         while (targetClass != null) {
-            Collections.addAll(fieldList, targetClass.getDeclaredFields());
+            fieldList.addAll(Arrays.asList(targetClass.getDeclaredFields()));
             targetClass = targetClass.getSuperclass();
         }
         return (Field[])fieldList.toArray(new Field[0]);



Mime
View raw message