提交 984816a0 编写于 作者: L lancea

6999086: Clarify that SyncFactory.setLogger can throw an NullPointerException

Reviewed-by: alanb
上级 cce44f8f
...@@ -596,6 +596,7 @@ public class SyncFactory { ...@@ -596,6 +596,7 @@ public class SyncFactory {
* @param logger A Logger object instance * @param logger A Logger object instance
* @throws java.lang.SecurityException if a security manager exists and its * @throws java.lang.SecurityException if a security manager exists and its
* {@code checkPermission} method denies calling {@code setLogger} * {@code checkPermission} method denies calling {@code setLogger}
* @throws NullPointerException if the logger is null
* @see SecurityManager#checkPermission * @see SecurityManager#checkPermission
*/ */
public static void setLogger(Logger logger) { public static void setLogger(Logger logger) {
...@@ -633,6 +634,7 @@ public class SyncFactory { ...@@ -633,6 +634,7 @@ public class SyncFactory {
* {@code checkPermission} method denies calling {@code setLogger} * {@code checkPermission} method denies calling {@code setLogger}
* @throws java.util.logging.LoggingPermission if a security manager exists and its * @throws java.util.logging.LoggingPermission if a security manager exists and its
* {@code checkPermission} method denies calling {@code setLevel} * {@code checkPermission} method denies calling {@code setLevel}
* @throws NullPointerException if the logger is null
* @see SecurityManager#checkPermission * @see SecurityManager#checkPermission
* @see LoggingPermission * @see LoggingPermission
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册