changeset 3060:c4a38022fdc1

6999086: Clarify that SyncFactory.setLogger can throw an NullPointerException Reviewed-by: alanb
author lancea
date Fri, 12 Nov 2010 08:41:03 -0500
parents 1e7dc87fad95
children f70d0d0a84cd
files src/share/classes/javax/sql/rowset/spi/SyncFactory.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/sql/rowset/spi/SyncFactory.java	Fri Nov 12 21:33:14 2010 +0800
+++ b/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
      */