diff options
| author | Julia Boes <jboes@openjdk.org> | 2019-09-20 11:07:52 +0100 |
|---|---|---|
| committer | Julia Boes <jboes@openjdk.org> | 2019-09-20 11:07:52 +0100 |
| commit | b15b322cf396287b5ae7b8e2a19205791d902fad (patch) | |
| tree | 91c03d816c53f2f39a897978fb3bcc793173ef54 /src/java.base/share/classes/java/io/FileReader.java | |
| parent | 2fc6c6459d4b0c7538787987ee0518b0133e790d (diff) | |
| download | openjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.tar.gz openjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.zip | |
8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea
Diffstat (limited to 'src/java.base/share/classes/java/io/FileReader.java')
| -rw-r--r-- | src/java.base/share/classes/java/io/FileReader.java | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/java.base/share/classes/java/io/FileReader.java b/src/java.base/share/classes/java/io/FileReader.java index d37cd8c9eb6..dd1c6099390 100644 --- a/src/java.base/share/classes/java/io/FileReader.java +++ b/src/java.base/share/classes/java/io/FileReader.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -50,11 +50,11 @@ public class FileReader extends InputStreamReader { * using the platform's * {@linkplain java.nio.charset.Charset#defaultCharset() default charset}. * - * @param fileName the name of the file to read - * @exception FileNotFoundException if the named file does not exist, - * is a directory rather than a regular file, - * or for some other reason cannot be opened for - * reading. + * @param fileName the name of the file to read + * @throws FileNotFoundException if the named file does not exist, + * is a directory rather than a regular file, + * or for some other reason cannot be opened for + * reading. */ public FileReader(String fileName) throws FileNotFoundException { super(new FileInputStream(fileName)); @@ -65,11 +65,11 @@ public class FileReader extends InputStreamReader { * using the platform's * {@linkplain java.nio.charset.Charset#defaultCharset() default charset}. * - * @param file the {@code File} to read - * @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 - * reading. + * @param file the {@code File} to read + * @throws FileNotFoundException if the file does not exist, + * is a directory rather than a regular file, + * or for some other reason cannot be opened for + * reading. */ public FileReader(File file) throws FileNotFoundException { super(new FileInputStream(file)); @@ -90,12 +90,12 @@ public class FileReader extends InputStreamReader { * Creates a new {@code FileReader}, given the name of the file to read * and the {@linkplain java.nio.charset.Charset charset}. * - * @param fileName the name of the file to read - * @param charset the {@linkplain java.nio.charset.Charset charset} - * @exception IOException if the named file does not exist, - * is a directory rather than a regular file, - * or for some other reason cannot be opened for - * reading. + * @param fileName the name of the file to read + * @param charset the {@linkplain java.nio.charset.Charset charset} + * @throws IOException if the named file does not exist, + * is a directory rather than a regular file, + * or for some other reason cannot be opened for + * reading. * * @since 11 */ @@ -107,12 +107,12 @@ public class FileReader extends InputStreamReader { * Creates a new {@code FileReader}, given the {@code File} to read and * the {@linkplain java.nio.charset.Charset charset}. * - * @param file the {@code File} to read - * @param charset the {@linkplain java.nio.charset.Charset charset} - * @exception IOException if the file does not exist, - * is a directory rather than a regular file, - * or for some other reason cannot be opened for - * reading. + * @param file the {@code File} to read + * @param charset the {@linkplain java.nio.charset.Charset charset} + * @throws IOException if the file does not exist, + * is a directory rather than a regular file, + * or for some other reason cannot be opened for + * reading. * * @since 11 */ |
