< prev index next >

src/java.base/share/classes/java/io/FilterOutputStream.java

Print this page

        

@@ -65,14 +65,10 @@
      *                the field {@code this.out} for later use, or
      *                <code>null</code> if this instance is to be
      *                created without an underlying stream.
      */
     public FilterOutputStream(OutputStream out) {
-        if (out == null) {
-            throw new NullPointerException();
-        }
-
         this.out = out;
     }
 
     /**
      * Writes the specified <code>byte</code> to this output stream.
< prev index next >