OpenJDK / jdk9 / jdk9 / jdk
changeset 250:c0eb84957bea
6546639: (spec)javax.net.ssl.SSLContext.getInstance(null) throws undocumented NPE
Summary: add NullPointerException description to those methods.
Reviewed-by: weijun
author | xuelei |
---|---|
date | Fri, 11 Apr 2008 03:33:22 -0400 |
parents | ad75c4b21d63 |
children | da9fa1fa9b95 |
files | src/share/classes/javax/net/ssl/SSLContext.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/javax/net/ssl/SSLContext.java Thu Apr 10 19:58:48 2008 +0800 +++ b/src/share/classes/javax/net/ssl/SSLContext.java Fri Apr 11 03:33:22 2008 -0400 @@ -1,5 +1,5 @@ /* - * 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. * * This code is free software; you can redistribute it and/or modify it @@ -134,6 +134,7 @@ * @exception NoSuchAlgorithmException if no Provider supports a * TrustManagerFactorySpi implementation for the * specified protocol. + * @exception NullPointerException if protocol is null. * * @see java.security.Provider */ @@ -175,6 +176,7 @@ * registered in the security provider list. * * @throws IllegalArgumentException if the provider name is null or empty. + * @throws NullPointerException if protocol is null. * * @see java.security.Provider */ @@ -210,6 +212,7 @@ * from the specified Provider object. * * @throws IllegalArgumentException if the provider name is null. + * @throws NullPointerException if protocol is null. * * @see java.security.Provider */