[CID-156932] - Fix the imaginary resource leak in NullOutputStream (#172)
[CID-156932] - Fix the imaginary resource leak in NullOutputStream (#172)

* [CID-156932] - Fix the imaginary resource leak in NullOutputStream

DigestOutputStream may change in the future, hence it worth to just refactor the code

* Checksum: Also move InputStream into try-with-resources

jenkinsci/remoting,jenkinsci/remoting