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/GenericBindRequest.java | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/GenericBindRequest.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/GenericBindRequest.java
index 997fae7..c8859ed 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/GenericBindRequest.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/GenericBindRequest.java
@@ -23,7 +23,7 @@
*
*
* Copyright 2009 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS
+ * Portions copyright 2011-2012 ForgeRock AS
*/
package org.forgerock.opendj.ldap.requests;
@@ -49,8 +49,7 @@
/**
* {@inheritDoc}
*/
- GenericBindRequest addControl(Control control)
- throws UnsupportedOperationException, NullPointerException;
+ GenericBindRequest addControl(Control control);
@@ -86,7 +85,7 @@
* {@inheritDoc}
*/
<C extends Control> C getControl(ControlDecoder<C> decoder,
- DecodeOptions options) throws NullPointerException, DecodeException;
+ DecodeOptions options) throws DecodeException;
@@ -118,8 +117,7 @@
* If this generic bind request does not permit the authentication
* type to be set.
*/
- GenericBindRequest setAuthenticationType(byte type)
- throws UnsupportedOperationException;
+ GenericBindRequest setAuthenticationType(byte type);
@@ -141,9 +139,7 @@
* @throws NullPointerException
* If {@code bytes} was {@code null}.
*/
- GenericBindRequest setAuthenticationValue(byte[] bytes)
- throws UnsupportedOperationException, NullPointerException;
-
+ GenericBindRequest setAuthenticationValue(byte[] bytes);
/**
@@ -166,7 +162,6 @@
* @throws NullPointerException
* If {@code name} was {@code null}.
*/
- GenericBindRequest setName(String name) throws UnsupportedOperationException,
- NullPointerException;
+ GenericBindRequest setName(String name);
}
--
Gitblit v1.10.0