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/CompareRequest.java |   27 ++++++++++-----------------
 1 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/CompareRequest.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/CompareRequest.java
index f9c9e81..003b6b1 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/CompareRequest.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/CompareRequest.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2009 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 
 package org.forgerock.opendj.ldap.requests;
@@ -31,7 +32,7 @@
 
 import java.util.List;
 
-import org.forgerock.i18n.LocalizedIllegalArgumentException;
+import org.forgerock.i18n.*;
 import org.forgerock.opendj.ldap.*;
 import org.forgerock.opendj.ldap.controls.Control;
 import org.forgerock.opendj.ldap.controls.ControlDecoder;
@@ -51,8 +52,7 @@
   /**
    * {@inheritDoc}
    */
-  CompareRequest addControl(Control control)
-      throws UnsupportedOperationException, NullPointerException;
+  CompareRequest addControl(Control control);
 
 
 
@@ -87,7 +87,7 @@
    * {@inheritDoc}
    */
   <C extends Control> C getControl(ControlDecoder<C> decoder,
-      DecodeOptions options) throws NullPointerException, DecodeException;
+      DecodeOptions options) throws DecodeException;
 
 
 
@@ -120,8 +120,7 @@
    * @throws NullPointerException
    *           If {@code value} was {@code null}.
    */
-  CompareRequest setAssertionValue(ByteString value)
-      throws UnsupportedOperationException, NullPointerException;
+  CompareRequest setAssertionValue(ByteString value);
 
 
 
@@ -140,8 +139,7 @@
    * @throws NullPointerException
    *           If {@code value} was {@code null}.
    */
-  CompareRequest setAssertionValue(Object value)
-      throws UnsupportedOperationException, NullPointerException;
+  CompareRequest setAssertionValue(Object value);
 
 
 
@@ -158,8 +156,7 @@
    *           If {@code attributeDescription} was {@code null}.
    */
   CompareRequest setAttributeDescription(
-      AttributeDescription attributeDescription)
-      throws UnsupportedOperationException, NullPointerException;
+      AttributeDescription attributeDescription);
 
 
 
@@ -178,9 +175,7 @@
    * @throws NullPointerException
    *           If {@code attributeDescription} was {@code null}.
    */
-  CompareRequest setAttributeDescription(String attributeDescription)
-      throws LocalizedIllegalArgumentException, UnsupportedOperationException,
-      NullPointerException;
+  CompareRequest setAttributeDescription(String attributeDescription);
 
 
 
@@ -197,8 +192,7 @@
    * @throws NullPointerException
    *           If {@code dn} was {@code null}.
    */
-  CompareRequest setName(DN dn) throws UnsupportedOperationException,
-      NullPointerException;
+  CompareRequest setName(DN dn);
 
 
 
@@ -217,7 +211,6 @@
    * @throws NullPointerException
    *           If {@code dn} was {@code null}.
    */
-  CompareRequest setName(String dn) throws LocalizedIllegalArgumentException,
-      UnsupportedOperationException, NullPointerException;
+  CompareRequest setName(String dn);
 
 }

--
Gitblit v1.10.0