提交 3040e387 编写于 作者: X xuelei

6546639: (spec)javax.net.ssl.SSLContext.getInstance(null) throws undocumented NPE

Summary: add NullPointerException description to those methods.
Reviewed-by: weijun
上级 ead6de5a
/* /*
* Copyright 1999-2006 Sun Microsystems, Inc. All Rights Reserved. * Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -134,6 +134,7 @@ public class SSLContext { ...@@ -134,6 +134,7 @@ public class SSLContext {
* @exception NoSuchAlgorithmException if no Provider supports a * @exception NoSuchAlgorithmException if no Provider supports a
* TrustManagerFactorySpi implementation for the * TrustManagerFactorySpi implementation for the
* specified protocol. * specified protocol.
* @exception NullPointerException if protocol is null.
* *
* @see java.security.Provider * @see java.security.Provider
*/ */
...@@ -175,6 +176,7 @@ public class SSLContext { ...@@ -175,6 +176,7 @@ public class SSLContext {
* registered in the security provider list. * registered in the security provider list.
* *
* @throws IllegalArgumentException if the provider name is null or empty. * @throws IllegalArgumentException if the provider name is null or empty.
* @throws NullPointerException if protocol is null.
* *
* @see java.security.Provider * @see java.security.Provider
*/ */
...@@ -210,6 +212,7 @@ public class SSLContext { ...@@ -210,6 +212,7 @@ public class SSLContext {
* from the specified Provider object. * from the specified Provider object.
* *
* @throws IllegalArgumentException if the provider name is null. * @throws IllegalArgumentException if the provider name is null.
* @throws NullPointerException if protocol is null.
* *
* @see java.security.Provider * @see java.security.Provider
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册