diff -r 22badc53802f -r bf24e33c7919 jdk/src/java.base/share/classes/java/io/FileReader.java --- a/jdk/src/java.base/share/classes/java/io/FileReader.java Wed Aug 05 12:19:38 2015 -0700 +++ b/jdk/src/java.base/share/classes/java/io/FileReader.java Thu Aug 06 13:20:13 2015 +0300 @@ -32,9 +32,9 @@ * size are appropriate. To specify these values yourself, construct an * InputStreamReader on a FileInputStream. * - *
FileReader
is meant for reading streams of characters.
+ *
{@code FileReader} is meant for reading streams of characters.
* For reading streams of raw bytes, consider using a
- * FileInputStream
.
+ * {@code FileInputStream}.
*
* @see InputStreamReader
* @see FileInputStream
@@ -45,7 +45,7 @@
public class FileReader extends InputStreamReader {
/**
- * Creates a new FileReader, given the name of the
+ * Creates a new {@code FileReader}, given the name of the
* file to read from.
*
* @param fileName the name of the file to read from
@@ -59,10 +59,10 @@
}
/**
- * Creates a new FileReader, given the File
+ * Creates a new {@code FileReader}, given the {@code File}
* to read from.
*
- * @param file the File to read from
+ * @param file the {@code File} to read from
* @exception FileNotFoundException if the file does not exist,
* is a directory rather than a regular file,
* or for some other reason cannot be opened for
@@ -73,8 +73,8 @@
}
/**
- * Creates a new FileReader, given the
- * FileDescriptor to read from.
+ * Creates a new {@code FileReader}, given the
+ * {@code FileDescriptor} to read from.
*
* @param fd the FileDescriptor to read from
*/