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/ModifyDNRequest.java | 29 +++++++++++------------------
1 files changed, 11 insertions(+), 18 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/ModifyDNRequest.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/ModifyDNRequest.java
index d64aac9..60d3d4c 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/ModifyDNRequest.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/ModifyDNRequest.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.DN;
import org.forgerock.opendj.ldap.DecodeException;
import org.forgerock.opendj.ldap.DecodeOptions;
@@ -60,8 +61,7 @@
/**
* {@inheritDoc}
*/
- ModifyDNRequest addControl(Control control)
- throws UnsupportedOperationException, NullPointerException;
+ ModifyDNRequest addControl(Control control);
@@ -69,7 +69,7 @@
* {@inheritDoc}
*/
<C extends Control> C getControl(ControlDecoder<C> decoder,
- DecodeOptions options) throws NullPointerException, DecodeException;
+ DecodeOptions options) throws DecodeException;
@@ -139,8 +139,7 @@
* If this modify DN request does not permit the delete old RDN
* parameter to be set.
*/
- ModifyDNRequest setDeleteOldRDN(boolean deleteOldRDN)
- throws UnsupportedOperationException;
+ ModifyDNRequest setDeleteOldRDN(boolean deleteOldRDN);
@@ -158,8 +157,7 @@
* @throws NullPointerException
* If {@code dn} was {@code null}.
*/
- ModifyDNRequest setName(DN dn) throws UnsupportedOperationException,
- NullPointerException;
+ ModifyDNRequest setName(DN dn);
@@ -179,8 +177,7 @@
* @throws NullPointerException
* If {@code dn} was {@code null}.
*/
- ModifyDNRequest setName(String dn) throws LocalizedIllegalArgumentException,
- UnsupportedOperationException, NullPointerException;
+ ModifyDNRequest setName(String dn);
@@ -199,8 +196,7 @@
* @throws NullPointerException
* If {@code rdn} was {@code null}.
*/
- ModifyDNRequest setNewRDN(RDN rdn) throws UnsupportedOperationException,
- NullPointerException;
+ ModifyDNRequest setNewRDN(RDN rdn);
@@ -221,9 +217,7 @@
* @throws NullPointerException
* If {@code rdn} was {@code null}.
*/
- ModifyDNRequest setNewRDN(String rdn)
- throws LocalizedIllegalArgumentException, UnsupportedOperationException,
- NullPointerException;
+ ModifyDNRequest setNewRDN(String rdn);
@@ -241,7 +235,7 @@
* If this modify DN request does not permit the new superior to be
* set.
*/
- ModifyDNRequest setNewSuperior(DN dn) throws UnsupportedOperationException;
+ ModifyDNRequest setNewSuperior(DN dn);
@@ -261,7 +255,6 @@
* If this modify DN request does not permit the new superior to be
* set.
*/
- ModifyDNRequest setNewSuperior(String dn)
- throws LocalizedIllegalArgumentException, UnsupportedOperationException;
+ ModifyDNRequest setNewSuperior(String dn);
}
--
Gitblit v1.10.0