jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380061 - /jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java
Date Sun, 02 Sep 2012 21:24:40 GMT
Author: pmouawad
Date: Sun Sep  2 21:24:39 2012
New Revision: 1380061

URL: http://svn.apache.org/viewvc?rev=1380061&view=rev
Log:
Use JOrphanUtils

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java?rev=1380061&r1=1380060&r2=1380061&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellClient.java Sun Sep  2 21:24:39
2012
@@ -25,6 +25,8 @@ import java.io.InputStreamReader;
 import java.io.OutputStream;
 import java.net.Socket;
 
+import org.apache.jorphan.util.JOrphanUtils;
+
 
 /**
  * Implements a client that can talk to the JMeter BeanShell server.
@@ -103,12 +105,10 @@ public class BeanShellClient {
                     System.out.print(c);
                 }
             } catch (IOException e) {
+                // TODO Why empty block ?
             } finally {
                 System.out.println("... disconnected from server.");
-                try {
-                    is.close();
-                } catch (IOException e) {
-                }
+                JOrphanUtils.closeQuietly(is);
             }
 
         }



Mime
View raw message