OpenJDK / amber / amber
changeset 7184:70b4f13c6f5d
6999086: Clarify that SyncFactory.setLogger can throw an NullPointerException
Reviewed-by: alanb
author | lancea |
---|---|
date | Fri, 12 Nov 2010 08:41:03 -0500 |
parents | d8ccc1c73358 |
children | 0ca9d322c703 |
files | jdk/src/share/classes/javax/sql/rowset/spi/SyncFactory.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/src/share/classes/javax/sql/rowset/spi/SyncFactory.java Fri Nov 12 21:33:14 2010 +0800 +++ b/jdk/src/share/classes/javax/sql/rowset/spi/SyncFactory.java Fri Nov 12 08:41:03 2010 -0500 @@ -596,6 +596,7 @@ * @param logger A Logger object instance * @throws java.lang.SecurityException if a security manager exists and its * {@code checkPermission} method denies calling {@code setLogger} + * @throws NullPointerException if the logger is null * @see SecurityManager#checkPermission */ public static void setLogger(Logger logger) { @@ -633,6 +634,7 @@ * {@code checkPermission} method denies calling {@code setLogger} * @throws java.util.logging.LoggingPermission if a security manager exists and its * {@code checkPermission} method denies calling {@code setLevel} + * @throws NullPointerException if the logger is null * @see SecurityManager#checkPermission * @see LoggingPermission */