Author: ggregory
Date: Wed Apr  6 00:23:36 2016
New Revision: 1737901

URL: http://svn.apache.org/viewvc?rev=1737901&view=rev
Log:
Add @SuppressWarnings.

Modified:
    
commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java

Modified: 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java
URL: 
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java?rev=1737901&r1=1737900&r2=1737901&view=diff
==============================================================================
--- 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java
 (original)
+++ 
commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java
 Wed Apr  6 00:23:36 2016
@@ -62,6 +62,7 @@ public class DemuxOutputStream extends O
      */
     @Override
     public void flush() throws IOException {
+        @SuppressWarnings("resource")
         final OutputStream output = outputStreamThreadLocal.get();
         if (null != output) {
             output.flush();
@@ -78,6 +79,7 @@ public class DemuxOutputStream extends O
      */
     @Override
     public void write(final int ch) throws IOException {
+        @SuppressWarnings("resource")
         final OutputStream output = outputStreamThreadLocal.get();
         if (null != output) {
             output.write(ch);


Reply via email to