Refactoring

master
David BRASSELY 2015-03-25 09:19:00 +01:00
parent 5d015a019a
commit a64a525111
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class JMXService implements Lifecycle {
} }
// if the URL is localhost, start up an Registry // if the URL is localhost, start up an Registry
if (serviceUrl.indexOf("localhost") > -1 if (serviceUrl.contains("localhost")
&& url.getProtocol().compareToIgnoreCase("rmi") == 0) { && url.getProtocol().compareToIgnoreCase("rmi") == 0) {
try { try {
int registryPort = getURLLocalHostPort(serviceUrl); int registryPort = getURLLocalHostPort(serviceUrl);