6999086: Clarify that SyncFactory.setLogger can throw an NullPointerException
authorlancea
Fri, 12 Nov 2010 08:41:03 -0500
changeset 7184 70b4f13c6f5d
parent 7183 d8ccc1c73358
child 7185 0ca9d322c703
6999086: Clarify that SyncFactory.setLogger can throw an NullPointerException Reviewed-by: alanb
jdk/src/share/classes/javax/sql/rowset/spi/SyncFactory.java
--- 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
      */