commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1362320 - in /commons/proper/net/trunk/src/test/java/org/apache/commons/net: ftp/parser/DownloadListings.java telnet/TelnetClientTest.java
Date Tue, 17 Jul 2012 00:07:37 GMT
Author: sebb
Date: Tue Jul 17 00:07:37 2012
New Revision: 1362320

URL: http://svn.apache.org/viewvc?rev=1362320&view=rev
Log:
Ensure resources are closed

Modified:
    commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java
    commons/proper/net/trunk/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java?rev=1362320&r1=1362319&r2=1362320&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java
(original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java
Tue Jul 17 00:07:37 2012
@@ -127,5 +127,6 @@ public class DownloadListings extends FT
             }
         }
         os.close();
+        rdr.close();
     }
 }

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java?rev=1362320&r1=1362319&r2=1362320&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
(original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/telnet/TelnetClientTest.java
Tue Jul 17 00:07:37 2012
@@ -756,6 +756,7 @@ extends TestCase implements TelnetNotifi
         assertTrue(test1spy_ok);
         assertTrue(test2spy_ok);
         assertTrue(stopspy_ok);
+        pi.close();
     }
 
     /***



Mime
View raw message