Skip to content

Commit f1ea57f

Browse files
author
Brian Burkhalter
committed
8340229: Improve opening sentence of FileInputStream constructor specification
Reviewed-by: alanb, jpai
1 parent 1202800 commit f1ea57f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/java.base/share/classes/java/io/FileInputStream.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ public class FileInputStream extends InputStream
8282
private volatile boolean closed;
8383

8484
/**
85-
* Creates a {@code FileInputStream} by
86-
* opening a connection to an actual file,
87-
* the file named by the path name {@code name}
88-
* in the file system. {@linkplain java.nio.file##links Symbolic links}
85+
* Creates a {@code FileInputStream} to read from an existing file
86+
* named by the path name {@code name}.
87+
* {@linkplain java.nio.file##links Symbolic links}
8988
* are automatically redirected to the <i>target</i> of the link.
9089
* A new {@code FileDescriptor}
9190
* object is created to represent this file
@@ -115,10 +114,8 @@ public FileInputStream(String name) throws FileNotFoundException {
115114
}
116115

117116
/**
118-
* Creates a {@code FileInputStream} by
119-
* opening a connection to an actual file,
120-
* the file named by the {@code File}
121-
* object {@code file} in the file system.
117+
* Creates a {@code FileInputStream} to read from an existing file
118+
* represented by the {@code File} object {@code file}.
122119
* {@linkplain java.nio.file##links Symbolic links}
123120
* are automatically redirected to the <i>target</i> of the link.
124121
* A new {@code FileDescriptor} object

0 commit comments

Comments
 (0)