google / google/error-prone

Refuse to read from an InputStream after it's been cosed

Open
#110 0 comments 0 reactions 0 assignees View on GitHub
migrated Priority-Medium Type-NewCheck
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

_[Original issue](https://code.google.com/p/error-prone/issues/detail?id=110) created by **lowasser@google.com** on 2013-03-08 at 06:27 AM_

---

I just encountered a real example in Google code where an InputStream was opened, _closed_, and then read from and hashed, resulting in hashing an empty string.

Could we add a check that after an InputStream is closed, it isn't referenced further?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.