Skip to content

Commit

Permalink
sonar fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Delle Grazie committed Aug 14, 2018
1 parent 3d0cb8e commit 2ebd3c9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

public class JmxArtemisConnector implements ArtemisConnector {

final protected OutputPrinter outputPrinter = new ConsolePrinter();

private static final String JMX_URL = "service:jmx:rmi:///jndi/rmi://%s:%s/jmxrmi";
private static final String JMS_MESSAGE_ID = "JMSMessageID";
private static final String ORIGINAL_DESTINATION = "OriginalDestination";
private static final String TEXT = "Text";

final protected OutputPrinter outputPrinter = new ConsolePrinter();

@Override
public List<MessageData> messagesOf(final String host, final String port, final String brokerName, final String destinationName) throws Exception {
try (final JMXConnector connector = getJMXConnector(host, port)) {
Expand Down Expand Up @@ -91,7 +91,7 @@ public String[] queueNames(final String host, final String port, final String br
}
}

protected JMXConnector getJMXConnector(final String host, final String port) throws MalformedURLException, IOException {
protected JMXConnector getJMXConnector(final String host, final String port) throws IOException {
return connect(new JMXServiceURL(format(JMX_URL, host, port)), emptyMap());
}

Expand Down

0 comments on commit 2ebd3c9

Please sign in to comment.