You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2017/03/24 21:45:14 UTC

[1/2] activemq-artemis git commit: This closes #1126

Repository: activemq-artemis
Updated Branches:
  refs/heads/master eb961e0a9 -> 52a2c5dd0


This closes #1126


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

Branch: refs/heads/master
Commit: 52a2c5dd06a6b7b0a1ed3967b5bef3b96cf29531
Parents: eb961e0 3c5595e
Author: Clebert Suconic <cl...@apache.org>
Authored: Fri Mar 24 17:44:20 2017 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Fri Mar 24 17:44:20 2017 -0400

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



[2/2] activemq-artemis git commit: ARTEMIS-1067 fix format specifiers in formatting strings

Posted by cl...@apache.org.
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 <jd...@redhat.com>
Authored: Thu Mar 23 13:25:47 2017 +0100
Committer: Clebert Suconic <cl...@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;