jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1663175 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketOutputStreamPoolFactory.java
Date Sun, 01 Mar 2015 22:32:40 GMT
Author: pmouawad
Date: Sun Mar  1 22:32:40 2015
New Revision: 1663175

URL: http://svn.apache.org/r1663175
Log:
Remove redundant null check as per sebb note

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketOutputStreamPoolFactory.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketOutputStreamPoolFactory.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketOutputStreamPoolFactory.java?rev=1663175&r1=1663174&r2=1663175&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketOutputStreamPoolFactory.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/graphite/SocketOutputStreamPoolFactory.java
Sun Mar  1 22:32:40 2015
@@ -53,9 +53,7 @@ public class SocketOutputStreamPoolFacto
         super.destroyObject(socketConnectionInfos, socketOutputStream);
         SocketOutputStream outputStream = socketOutputStream.getObject();
         JOrphanUtils.closeQuietly(outputStream);
-        if(outputStream.getSocket() != null) {
-            JOrphanUtils.closeQuietly(outputStream.getSocket());
-        }
+        JOrphanUtils.closeQuietly(outputStream.getSocket());
     }
 
     /**



Mime
View raw message