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/SearchRequest.java | 38 ++++++++++++++------------------------
1 files changed, 14 insertions(+), 24 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SearchRequest.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SearchRequest.java
index 9114799..0e85f09 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SearchRequest.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SearchRequest.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2009-2010 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;
@@ -61,16 +62,14 @@
* @throws NullPointerException
* If {@code attributeDescriptions} was {@code null}.
*/
- SearchRequest addAttribute(String... attributeDescriptions)
- throws UnsupportedOperationException, NullPointerException;
+ SearchRequest addAttribute(String... attributeDescriptions);
/**
* {@inheritDoc}
*/
- SearchRequest addControl(Control control)
- throws UnsupportedOperationException, NullPointerException;
+ SearchRequest addControl(Control control);
@@ -90,7 +89,7 @@
* {@inheritDoc}
*/
<C extends Control> C getControl(ControlDecoder<C> decoder,
- DecodeOptions options) throws NullPointerException, DecodeException;
+ DecodeOptions options) throws DecodeException;
@@ -194,8 +193,7 @@
* @throws NullPointerException
* If {@code policy} was {@code null}.
*/
- SearchRequest setDereferenceAliasesPolicy(DereferenceAliasesPolicy policy)
- throws UnsupportedOperationException, NullPointerException;
+ SearchRequest setDereferenceAliasesPolicy(DereferenceAliasesPolicy policy);
@@ -212,8 +210,7 @@
* @throws NullPointerException
* If {@code filter} was {@code null}.
*/
- SearchRequest setFilter(Filter filter) throws UnsupportedOperationException,
- NullPointerException;
+ SearchRequest setFilter(Filter filter);
@@ -233,8 +230,7 @@
* @throws NullPointerException
* If {@code filter} was {@code null}.
*/
- SearchRequest setFilter(String filter) throws UnsupportedOperationException,
- LocalizedIllegalArgumentException, NullPointerException;
+ SearchRequest setFilter(String filter);
@@ -252,8 +248,7 @@
* @throws NullPointerException
* If {@code dn} was {@code null}.
*/
- SearchRequest setName(DN dn) throws UnsupportedOperationException,
- NullPointerException;
+ SearchRequest setName(DN dn);
@@ -273,8 +268,7 @@
* @throws NullPointerException
* If {@code dn} was {@code null}.
*/
- SearchRequest setName(String dn) throws LocalizedIllegalArgumentException,
- UnsupportedOperationException, NullPointerException;
+ SearchRequest setName(String dn);
@@ -289,8 +283,7 @@
* @throws NullPointerException
* If {@code scope} was {@code null}.
*/
- SearchRequest setScope(SearchScope scope)
- throws UnsupportedOperationException, NullPointerException;
+ SearchRequest setScope(SearchScope scope);
@@ -311,8 +304,7 @@
* @throws LocalizedIllegalArgumentException
* If {@code limit} was negative.
*/
- SearchRequest setSizeLimit(int limit) throws UnsupportedOperationException,
- LocalizedIllegalArgumentException;
+ SearchRequest setSizeLimit(int limit);
@@ -333,8 +325,7 @@
* @throws LocalizedIllegalArgumentException
* If {@code limit} was negative.
*/
- SearchRequest setTimeLimit(int limit) throws UnsupportedOperationException,
- LocalizedIllegalArgumentException;
+ SearchRequest setTimeLimit(int limit);
@@ -351,7 +342,6 @@
* If this search request does not permit the types-only parameter
* to be set.
*/
- SearchRequest setTypesOnly(boolean typesOnly)
- throws UnsupportedOperationException;
+ SearchRequest setTypesOnly(boolean typesOnly);
}
--
Gitblit v1.10.0