Skip to content

Commit

Permalink
Fixes whoopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
scottopell committed Dec 27, 2023
1 parent be3c9b4 commit c118cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/datadog/jmxfetch/Instance.java
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public boolean timeToCollect() {
}
}

private synchronized void addMatchingAttributesForBean(
private synchronized int addMatchingAttributesForBean(
ObjectName beanName,
MBeanInfo info,
boolean metricReachedPreviouslyDisplayed
Expand Down Expand Up @@ -777,7 +777,7 @@ public synchronized void trackBean(ObjectName beanName) {
log.debug("Bean registered event. {}", beanName);
String className;
MBeanAttributeInfo[] attributeInfos;
int matchedAttributesForBean;
int matchedAttributesForBean = 0;
try {
log.debug("Getting bean info for bean: {}", beanName);
MBeanInfo info = connection.getMBeanInfo(beanName);
Expand Down

0 comments on commit c118cc2

Please sign in to comment.