8230723: Remove default constructors from java.lang and java.io

Reviewed-by: bpb, rriggs
This commit is contained in:
Joe Darcy 2019-09-09 10:13:42 -07:00
parent c84e19f3ca
commit 10f1f10f2e
10 changed files with 54 additions and 4 deletions

View file

@ -55,6 +55,11 @@ public abstract class InputStream implements Closeable {
private static final int DEFAULT_BUFFER_SIZE = 8192;
/**
* Constructor for subclasses to call.
*/
public InputStream() {}
/**
* Returns a new {@code InputStream} that reads no bytes. The returned
* stream is initially open. The stream is closed by calling the