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/responses/BindResult.java |   22 +++++++++-------------
 1 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/responses/BindResult.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/responses/BindResult.java
index c7105c2..f6e5ed5 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/responses/BindResult.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/responses/BindResult.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2009 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 
 package org.forgerock.opendj.ldap.responses;
@@ -65,16 +66,14 @@
   /**
    * {@inheritDoc}
    */
-  BindResult addControl(Control control) throws UnsupportedOperationException,
-      NullPointerException;
+  BindResult addControl(Control control);
 
 
 
   /**
    * {@inheritDoc}
    */
-  BindResult addReferralURI(String uri) throws UnsupportedOperationException,
-      NullPointerException;
+  BindResult addReferralURI(String uri);
 
 
 
@@ -89,7 +88,7 @@
    * {@inheritDoc}
    */
   <C extends Control> C getControl(ControlDecoder<C> decoder,
-      DecodeOptions options) throws NullPointerException, DecodeException;
+      DecodeOptions options) throws DecodeException;
 
 
 
@@ -171,30 +170,28 @@
   /**
    * {@inheritDoc}
    */
-  BindResult setCause(Throwable cause) throws UnsupportedOperationException;
+  BindResult setCause(Throwable cause);
 
 
 
   /**
    * {@inheritDoc}
    */
-  BindResult setDiagnosticMessage(String message)
-      throws UnsupportedOperationException;
+  BindResult setDiagnosticMessage(String message);
 
 
 
   /**
    * {@inheritDoc}
    */
-  BindResult setMatchedDN(String dn) throws UnsupportedOperationException;
+  BindResult setMatchedDN(String dn);
 
 
 
   /**
    * {@inheritDoc}
    */
-  BindResult setResultCode(ResultCode resultCode)
-      throws UnsupportedOperationException, NullPointerException;
+  BindResult setResultCode(ResultCode resultCode);
 
 
 
@@ -209,7 +206,6 @@
    *           If this bind result does not permit the server SASL credentials
    *           to be set.
    */
-  BindResult setServerSASLCredentials(ByteString credentials)
-      throws UnsupportedOperationException;
+  BindResult setServerSASLCredentials(ByteString credentials);
 
 }

--
Gitblit v1.10.0