You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2017/03/24 18:39:48 UTC
svn commit: r1788522 - in
/commons/proper/net/trunk/src/main/java/examples/unix: chargen.java echo.java
Author: sebb
Date: Fri Mar 24 18:39:48 2017
New Revision: 1788522
URL: http://svn.apache.org/viewvc?rev=1788522&view=rev
Log:
(FindBugs) close resources
Modified:
commons/proper/net/trunk/src/main/java/examples/unix/chargen.java
commons/proper/net/trunk/src/main/java/examples/unix/echo.java
Modified: commons/proper/net/trunk/src/main/java/examples/unix/chargen.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/chargen.java?rev=1788522&r1=1788521&r2=1788522&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/chargen.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/chargen.java Fri Mar 24 18:39:48 2017
@@ -66,6 +66,7 @@ public final class chargen
System.out.println(line);
}
+ chargenInput.close();
client.disconnect();
}
Modified: commons/proper/net/trunk/src/main/java/examples/unix/echo.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/unix/echo.java?rev=1788522&r1=1788521&r2=1788522&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/unix/echo.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/unix/echo.java Fri Mar 24 18:39:48 2017
@@ -64,7 +64,9 @@ public final class echo
echoOutput.println(line);
System.out.println(echoInput.readLine());
}
-
+ echoOutput.close();
+ echoInput.close();
+ echoInput.close();
client.disconnect();
}