diff options
Diffstat (limited to 'luni/src/main/java/java/security/cert/LDAPCertStoreParameters.java')
-rw-r--r-- | luni/src/main/java/java/security/cert/LDAPCertStoreParameters.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/luni/src/main/java/java/security/cert/LDAPCertStoreParameters.java b/luni/src/main/java/java/security/cert/LDAPCertStoreParameters.java index 5b01f90..163c99a 100644 --- a/luni/src/main/java/java/security/cert/LDAPCertStoreParameters.java +++ b/luni/src/main/java/java/security/cert/LDAPCertStoreParameters.java @@ -43,11 +43,11 @@ public class LDAPCertStoreParameters implements CertStoreParameters { * is {@code serverName} is {@code null}. */ public LDAPCertStoreParameters(String serverName, int port) { + if (serverName == null) { + throw new NullPointerException("serverName == null"); + } this.port = port; this.serverName = serverName; - if (this.serverName == null) { - throw new NullPointerException(); - } } /** @@ -71,11 +71,11 @@ public class LDAPCertStoreParameters implements CertStoreParameters { * if {@code serverName} is {@code null}. */ public LDAPCertStoreParameters(String serverName) { + if (serverName == null) { + throw new NullPointerException("serverName == null"); + } this.port = DEFAULT_LDAP_PORT; this.serverName = serverName; - if (this.serverName == null) { - throw new NullPointerException(); - } } /** |