8340229: Improve opening sentence of FileInputStream constructor specification

Reviewed-by: alanb, jpai
This commit is contained in:
Brian Burkhalter 2024-10-03 15:13:42 +00:00
parent 12028000db
commit f1ea57f06a

View file

@ -82,10 +82,9 @@ public class FileInputStream extends InputStream
private volatile boolean closed; private volatile boolean closed;
/** /**
* Creates a {@code FileInputStream} by * Creates a {@code FileInputStream} to read from an existing file
* opening a connection to an actual file, * named by the path name {@code name}.
* the file named by the path name {@code name} * {@linkplain java.nio.file##links Symbolic links}
* in the file system. {@linkplain java.nio.file##links Symbolic links}
* are automatically redirected to the <i>target</i> of the link. * are automatically redirected to the <i>target</i> of the link.
* A new {@code FileDescriptor} * A new {@code FileDescriptor}
* object is created to represent this file * object is created to represent this file
@ -115,10 +114,8 @@ public class FileInputStream extends InputStream
} }
/** /**
* Creates a {@code FileInputStream} by * Creates a {@code FileInputStream} to read from an existing file
* opening a connection to an actual file, * represented by the {@code File} object {@code file}.
* the file named by the {@code File}
* object {@code file} in the file system.
* {@linkplain java.nio.file##links Symbolic links} * {@linkplain java.nio.file##links Symbolic links}
* are automatically redirected to the <i>target</i> of the link. * are automatically redirected to the <i>target</i> of the link.
* A new {@code FileDescriptor} object * A new {@code FileDescriptor} object