ARTEMIS-1067 fix format specifiers in formatting strings

This commit is contained in:
Jiri Danek 2017-03-23 13:25:47 +01:00 committed by Clebert Suconic
parent eb961e0a9e
commit 3c5595e7fc
1 changed files with 3 additions and 3 deletions

View File

@ -40,19 +40,19 @@ public abstract class AbstractActiveMQClientResource extends ExternalResource {
public AbstractActiveMQClientResource(String url) {
if (url == null) {
throw new IllegalArgumentException(String.format("Error creating {} - url cannot be null", this.getClass().getSimpleName()));
throw new IllegalArgumentException(String.format("Error creating %s - url cannot be null", this.getClass().getSimpleName()));
}
try {
this.serverLocator = ActiveMQClient.createServerLocator(url);
} catch (Exception ex) {
throw new RuntimeException(String.format("Error creating {} - createServerLocator( {} ) failed", this.getClass().getSimpleName(), url.toString()), ex);
throw new RuntimeException(String.format("Error creating %s - createServerLocator( %s ) failed", this.getClass().getSimpleName(), url), ex);
}
}
public AbstractActiveMQClientResource(ServerLocator serverLocator) {
if (serverLocator == null) {
throw new IllegalArgumentException(String.format("Error creating {} - ServerLocator cannot be null", this.getClass().getSimpleName()));
throw new IllegalArgumentException(String.format("Error creating %s - ServerLocator cannot be null", this.getClass().getSimpleName()));
}
this.serverLocator = serverLocator;