From 863f47997e6b48d97cf2040f567ce7b1e2818c05 Mon Sep 17 00:00:00 2001 From: Christian Posta Date: Fri, 1 Feb 2013 00:25:56 +0000 Subject: [PATCH] Fix for https://issues.apache.org/jira/browse/AMQ-4289 activemq-perf-maven-plugin is unusable because of bug in ReflectionUtil helper class previous commit actually had fix commented out. this has the fix. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1441277 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/tool/properties/ReflectionUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java b/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java index e20c49d415..8e8413c4b1 100644 --- a/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java +++ b/activemq-tooling/activemq-perf-maven-plugin/src/main/java/org/apache/activemq/tool/properties/ReflectionUtil.java @@ -213,8 +213,7 @@ public final class ReflectionUtil { } else { try { Object val = getterMethods[i].invoke(targetObject, null); -// if (val != null && val != targetObject) { - if (val != null ) { + if (val != null && val != targetObject) { props.putAll(retrieveClassProperties(propertyName + ".", val.getClass(), val)); } } catch (InvocationTargetException e) {