cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject [2/6] cassandra git commit: eclipse-warning fix
Date Thu, 20 Oct 2016 15:49:51 GMT
eclipse-warning fix


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/4ba91cda
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/4ba91cda
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/4ba91cda

Branch: refs/heads/cassandra-3.X
Commit: 4ba91cdadd42334c98dc1bb16b072c8ed59e4ba8
Parents: 83cc2ed
Author: Yuki Morishita <yukim@apache.org>
Authored: Thu Oct 20 10:38:53 2016 -0500
Committer: Yuki Morishita <yukim@apache.org>
Committed: Thu Oct 20 10:38:53 2016 -0500

----------------------------------------------------------------------
 .../apache/cassandra/streaming/DefaultConnectionFactory.java   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4ba91cda/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java b/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java
index 77ee0f1..7e9dfd3 100644
--- a/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java
+++ b/src/java/org/apache/cassandra/streaming/DefaultConnectionFactory.java
@@ -59,11 +59,7 @@ public class DefaultConnectionFactory implements StreamConnectionFactory
             {
                 if (socket != null)
                 {
-                    try
-                    {
-                        socket.close();
-                    }
-                    catch (IOException ignore) {}
+                    socket.close();
                 }
                 if (++attempts >= MAX_CONNECT_ATTEMPTS)
                     throw e;


Mime
View raw message