Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rayz committed Oct 18, 2023
1 parent c2bc557 commit 992c29d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/datadog/jmxfetch/Instance.java
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ public Connection getConnection(

/** Initializes the instance. May force a new connection.. */
public void init(boolean forceNewConnection)
throws IOException, FailedLoginException, SecurityException {
throws IOException, FailedLoginException, SecurityException,
MalformedObjectNameException {
log.info("Trying to connect to JMX Server at " + this.toString());
connection = getConnection(instanceMap, forceNewConnection);
log.info(
Expand Down Expand Up @@ -496,7 +497,7 @@ public String toString() {
}

/** Returns a map of metrics collected. */
public List<Metric> getMetrics() throws IOException {
public List<Metric> getMetrics() throws IOException, MalformedObjectNameException {

// In case of ephemeral beans, we can force to refresh the bean list x seconds
// post initialization and every x seconds thereafter.
Expand Down

0 comments on commit 992c29d

Please sign in to comment.