made changes based on Sonar suggestions

added optional rome dependency to HTTP module
This commit is contained in:
Oleg Zhurakousky
2011-12-20 10:08:27 -05:00
committed by Mark Fisher
parent 49482dd0db
commit a44d150009
9 changed files with 30 additions and 24 deletions

View File

@@ -421,7 +421,7 @@ public class IntegrationMBeanExporter extends MBeanExporter implements BeanPostP
@ManagedAttribute
public String[] getHandlerNames() {
return handlersByName.keySet().toArray(new String[0]);
return handlersByName.keySet().toArray(new String[handlersByName.size()]);
}
@ManagedMetric(metricType = MetricType.GAUGE, displayName = "Active Handler Count")
@@ -446,7 +446,7 @@ public class IntegrationMBeanExporter extends MBeanExporter implements BeanPostP
@ManagedAttribute
public String[] getChannelNames() {
return channelsByName.keySet().toArray(new String[0]);
return channelsByName.keySet().toArray(new String[channelsByName.size()]);
}
public Statistics getHandlerDuration(String name) {