From 2945ea91cc8e16b6e1e6fc6dce3d769abc243ee1 Mon Sep 17 00:00:00 2001 From: naoto Date: Tue, 28 May 2013 14:02:49 -0700 Subject: [PATCH] 6251788: (rb) PropertyResourceBundle doesn't document exceptions Reviewed-by: okutsu --- src/share/classes/java/util/PropertyResourceBundle.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/share/classes/java/util/PropertyResourceBundle.java b/src/share/classes/java/util/PropertyResourceBundle.java index 98ebd3b0f..841d7d759 100644 --- a/src/share/classes/java/util/PropertyResourceBundle.java +++ b/src/share/classes/java/util/PropertyResourceBundle.java @@ -124,6 +124,8 @@ public class PropertyResourceBundle extends ResourceBundle { * to read from. * @throws IOException if an I/O error occurs * @throws NullPointerException if stream is null + * @throws IllegalArgumentException if {@code stream} contains a + * malformed Unicode escape sequence. */ @SuppressWarnings({"unchecked", "rawtypes"}) public PropertyResourceBundle (InputStream stream) throws IOException { @@ -142,6 +144,8 @@ public class PropertyResourceBundle extends ResourceBundle { * read from. * @throws IOException if an I/O error occurs * @throws NullPointerException if reader is null + * @throws IllegalArgumentException if a malformed Unicode escape sequence appears + * from {@code reader}. * @since 1.6 */ @SuppressWarnings({"unchecked", "rawtypes"}) -- GitLab