From 41e72531b209b74571589296a3a33354eb2a1c39 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 03 Jan 2012 17:05:22 +0000
Subject: [PATCH] Fix OPENDJ-394: Do not declare unchecked exceptions in method declarations
---
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPConnectionFactory.java | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPConnectionFactory.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPConnectionFactory.java
index 378a152..e842145 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPConnectionFactory.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LDAPConnectionFactory.java
@@ -23,7 +23,7 @@
*
*
* Copyright 2009-2010 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS.
+ * Portions copyright 2011-2012 ForgeRock AS.
*/
package org.forgerock.opendj.ldap;
@@ -62,7 +62,6 @@
* If {@code address} was {@code null}.
*/
public LDAPConnectionFactory(final SocketAddress address)
- throws NullPointerException
{
this(address, new LDAPOptions());
}
@@ -81,7 +80,7 @@
* If {@code address} or {@code options} was {@code null}.
*/
public LDAPConnectionFactory(final SocketAddress address,
- final LDAPOptions options) throws NullPointerException
+ final LDAPOptions options)
{
Validator.ensureNotNull(address, options);
this.impl = new LDAPConnectionFactoryImpl(address, options);
@@ -101,7 +100,6 @@
* If {@code host} was {@code null}.
*/
public LDAPConnectionFactory(final String host, final int port)
- throws NullPointerException
{
this(host, port, new LDAPOptions());
}
@@ -122,7 +120,7 @@
* If {@code host} or {@code options} was {@code null}.
*/
public LDAPConnectionFactory(final String host, final int port,
- final LDAPOptions options) throws NullPointerException
+ final LDAPOptions options)
{
Validator.ensureNotNull(host, options);
final SocketAddress address = new InetSocketAddress(host, port);
--
Gitblit v1.10.0