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/requests/SimpleBindRequest.java | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SimpleBindRequest.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SimpleBindRequest.java
index f4ae287..2b72f3f 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SimpleBindRequest.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SimpleBindRequest.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.requests;
@@ -57,8 +57,7 @@
/**
* {@inheritDoc}
*/
- SimpleBindRequest addControl(Control control)
- throws UnsupportedOperationException, NullPointerException;
+ SimpleBindRequest addControl(Control control);
@@ -83,7 +82,7 @@
* {@inheritDoc}
*/
<C extends Control> C getControl(ControlDecoder<C> decoder,
- DecodeOptions options) throws NullPointerException, DecodeException;
+ DecodeOptions options) throws DecodeException;
@@ -137,8 +136,7 @@
* @throws NullPointerException
* If {@code name} was {@code null}.
*/
- SimpleBindRequest setName(String name) throws UnsupportedOperationException,
- NullPointerException;
+ SimpleBindRequest setName(String name);
@@ -161,8 +159,7 @@
* @throws NullPointerException
* If {@code password} was {@code null}.
*/
- SimpleBindRequest setPassword(byte[] password)
- throws UnsupportedOperationException, NullPointerException;
+ SimpleBindRequest setPassword(byte[] password);
@@ -183,7 +180,6 @@
* @throws NullPointerException
* If {@code password} was {@code null}.
*/
- SimpleBindRequest setPassword(char[] password)
- throws UnsupportedOperationException, NullPointerException;
+ SimpleBindRequest setPassword(char[] password);
}
--
Gitblit v1.10.0