qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject [1/2] qpid-jms git commit: Remove redundant type check.
Date Mon, 09 Feb 2015 23:28:11 GMT
Repository: qpid-jms
Updated Branches:
  refs/heads/master 8b5a0f8a6 -> b5db59571


Remove redundant type check.

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/b5db5957
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/b5db5957
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/b5db5957

Branch: refs/heads/master
Commit: b5db59571ef6fb04cf40282478f7805563d0c3b1
Parents: c6813f7
Author: Timothy Bish <tabish121@gmail.com>
Authored: Mon Feb 9 18:27:52 2015 -0500
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Mon Feb 9 18:28:07 2015 -0500

----------------------------------------------------------------------
 .../qpid/jms/provider/failover/FailoverProvider.java    | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/b5db5957/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/failover/FailoverProvider.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/failover/FailoverProvider.java
b/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/failover/FailoverProvider.java
index a080fb1..fa68963 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/failover/FailoverProvider.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/failover/FailoverProvider.java
@@ -212,13 +212,11 @@ public class FailoverProvider extends DefaultProviderListener implements
Provide
             pending = new CreateConnectionRequest(request) {
                 @Override
                 public void doTask() throws Exception {
-                    if (resource instanceof JmsConnectionInfo) {
-                        JmsConnectionInfo connectionInfo = (JmsConnectionInfo) resource;
-                        connectTimeout = connectionInfo.getConnectTimeout();
-                        closeTimeout = connectionInfo.getCloseTimeout();
-                        sendTimeout = connectionInfo.getSendTimeout();
-                        requestTimeout = connectionInfo.getRequestTimeout();
-                    }
+                    JmsConnectionInfo connectionInfo = (JmsConnectionInfo) resource;
+                    connectTimeout = connectionInfo.getConnectTimeout();
+                    closeTimeout = connectionInfo.getCloseTimeout();
+                    sendTimeout = connectionInfo.getSendTimeout();
+                    requestTimeout = connectionInfo.getRequestTimeout();
 
                     provider.create(resource, this);
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message