konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C
https://teavm.org
Apache License 2.0
2.55k stars 260 forks source link

Implement static nullOutputStream() of OutputStream #878

Closed tryone144 closed 5 months ago

tryone144 commented 5 months ago

This PR adds the missing static nullOutputStream() method of java.io.OutputStream. This should bring the implementation of that class to 100% coverage.

This function creates a dummy OutputStream object that consumes the input and does nothing.