INT-2323
made changes based on Sonar suggestions added optional rome dependency to HTTP module
This commit is contained in:
committed by
Mark Fisher
parent
49482dd0db
commit
a44d150009
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user