< prev index next >

src/java.base/share/classes/java/util/Properties.java

Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea

*** 392,402 **** * <cite>The Java&trade; Language Specification</cite>. * <p> * The specified stream remains open after this method returns. * * @param inStream the input stream. ! * @exception IOException if an error occurred when reading from the * input stream. * @throws IllegalArgumentException if the input stream contains a * malformed Unicode escape sequence. * @throws NullPointerException if {@code inStream} is null. * @since 1.2 --- 392,402 ---- * <cite>The Java&trade; Language Specification</cite>. * <p> * The specified stream remains open after this method returns. * * @param inStream the input stream. ! * @throws IOException if an error occurred when reading from the * input stream. * @throws IllegalArgumentException if the input stream contains a * malformed Unicode escape sequence. * @throws NullPointerException if {@code inStream} is null. * @since 1.2
*** 799,809 **** * String comments)} method or the * {@code storeToXML(OutputStream os, String comment)} method. * * @param out an output stream. * @param comments a description of the property list. ! * @exception ClassCastException if this {@code Properties} object * contains any keys or values that are not * {@code Strings}. */ @Deprecated public void save(OutputStream out, String comments) { --- 799,809 ---- * String comments)} method or the * {@code storeToXML(OutputStream os, String comment)} method. * * @param out an output stream. * @param comments a description of the property list. ! * @throws ClassCastException if this {@code Properties} object * contains any keys or values that are not * {@code Strings}. */ @Deprecated public void save(OutputStream out, String comments) {
*** 851,865 **** * After the entries have been written, the output stream is flushed. * The output stream remains open after this method returns. * * @param writer an output character stream writer. * @param comments a description of the property list. ! * @exception IOException if writing this property list to the specified * output stream throws an {@code IOException}. ! * @exception ClassCastException if this {@code Properties} object * contains any keys or values that are not {@code Strings}. ! * @exception NullPointerException if {@code writer} is null. * @since 1.6 */ public void store(Writer writer, String comments) throws IOException { --- 851,865 ---- * After the entries have been written, the output stream is flushed. * The output stream remains open after this method returns. * * @param writer an output character stream writer. * @param comments a description of the property list. ! * @throws IOException if writing this property list to the specified * output stream throws an {@code IOException}. ! * @throws ClassCastException if this {@code Properties} object * contains any keys or values that are not {@code Strings}. ! * @throws NullPointerException if {@code writer} is null. * @since 1.6 */ public void store(Writer writer, String comments) throws IOException {
*** 898,912 **** * After the entries have been written, the output stream is flushed. * The output stream remains open after this method returns. * * @param out an output stream. * @param comments a description of the property list. ! * @exception IOException if writing this property list to the specified * output stream throws an {@code IOException}. ! * @exception ClassCastException if this {@code Properties} object * contains any keys or values that are not {@code Strings}. ! * @exception NullPointerException if {@code out} is null. * @since 1.2 */ public void store(OutputStream out, String comments) throws IOException { --- 898,912 ---- * After the entries have been written, the output stream is flushed. * The output stream remains open after this method returns. * * @param out an output stream. * @param comments a description of the property list. ! * @throws IOException if writing this property list to the specified * output stream throws an {@code IOException}. ! * @throws ClassCastException if this {@code Properties} object * contains any keys or values that are not {@code Strings}. ! * @throws NullPointerException if {@code out} is null. * @since 1.2 */ public void store(OutputStream out, String comments) throws IOException {
< prev index next >