activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-1067 fix format specifiers in formatting strings
Date Fri, 24 Mar 2017 21:45:15 GMT
ARTEMIS-1067 fix format specifiers in formatting strings


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/3c5595e7
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/3c5595e7
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/3c5595e7

Branch: refs/heads/master
Commit: 3c5595e7fc718afcc2187e491d3b6fc8a982f482
Parents: eb961e0
Author: Jiri Danek <jdanek@redhat.com>
Authored: Thu Mar 23 13:25:47 2017 +0100
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Fri Mar 24 17:44:20 2017 -0400

----------------------------------------------------------------------
 .../activemq/artemis/junit/AbstractActiveMQClientResource.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/3c5595e7/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/AbstractActiveMQClientResource.java
----------------------------------------------------------------------
diff --git a/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/AbstractActiveMQClientResource.java
b/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/AbstractActiveMQClientResource.java
index b9179b1..4c62a86 100644
--- a/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/AbstractActiveMQClientResource.java
+++ b/artemis-junit/src/main/java/org/apache/activemq/artemis/junit/AbstractActiveMQClientResource.java
@@ -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;


Mime
View raw message