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/SearchRequestImpl.java |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SearchRequestImpl.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SearchRequestImpl.java
index 3011e4f..a3f4eac 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SearchRequestImpl.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/SearchRequestImpl.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2010 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 
 package org.forgerock.opendj.ldap.requests;
@@ -32,7 +33,6 @@
 import java.util.LinkedList;
 import java.util.List;
 
-import org.forgerock.i18n.LocalizedIllegalArgumentException;
 import org.forgerock.opendj.ldap.DN;
 import org.forgerock.opendj.ldap.DereferenceAliasesPolicy;
 import org.forgerock.opendj.ldap.Filter;
@@ -85,7 +85,6 @@
    *           {@code null}.
    */
   SearchRequestImpl(final DN name, final SearchScope scope, final Filter filter)
-      throws NullPointerException
   {
     this.name = name;
     this.scope = scope;
@@ -104,7 +103,6 @@
    *           If {@code searchRequest} was {@code null} .
    */
   SearchRequestImpl(final SearchRequest searchRequest)
-      throws NullPointerException
   {
     super(searchRequest);
     this.attributes.addAll(searchRequest.getAttributes());
@@ -123,7 +121,6 @@
    * {@inheritDoc}
    */
   public SearchRequest addAttribute(final String... attributeDescriptions)
-      throws NullPointerException
   {
     for (String attributeDescription : attributeDescriptions)
     {
@@ -218,7 +215,7 @@
    * {@inheritDoc}
    */
   public SearchRequest setDereferenceAliasesPolicy(
-      final DereferenceAliasesPolicy policy) throws NullPointerException
+      final DereferenceAliasesPolicy policy)
   {
     Validator.ensureNotNull(policy);
 
@@ -232,7 +229,6 @@
    * {@inheritDoc}
    */
   public SearchRequest setFilter(final Filter filter)
-      throws NullPointerException
   {
     Validator.ensureNotNull(filter);
 
@@ -246,7 +242,6 @@
    * {@inheritDoc}
    */
   public SearchRequest setFilter(final String filter)
-      throws LocalizedIllegalArgumentException, NullPointerException
   {
     this.filter = Filter.valueOf(filter);
     return this;
@@ -257,7 +252,7 @@
   /**
    * {@inheritDoc}
    */
-  public SearchRequest setName(final DN dn) throws NullPointerException
+  public SearchRequest setName(final DN dn)
   {
     Validator.ensureNotNull(dn);
 
@@ -271,7 +266,6 @@
    * {@inheritDoc}
    */
   public SearchRequest setName(final String dn)
-      throws LocalizedIllegalArgumentException, NullPointerException
   {
     Validator.ensureNotNull(dn);
 
@@ -285,7 +279,6 @@
    * {@inheritDoc}
    */
   public SearchRequest setScope(final SearchScope scope)
-      throws NullPointerException
   {
     Validator.ensureNotNull(scope);
 
@@ -299,9 +292,7 @@
    * {@inheritDoc}
    */
   public SearchRequest setSizeLimit(final int limit)
-      throws LocalizedIllegalArgumentException
   {
-    // FIXME: I18N error message.
     Validator.ensureTrue(limit >= 0, "negative size limit");
 
     this.sizeLimit = limit;
@@ -314,9 +305,7 @@
    * {@inheritDoc}
    */
   public SearchRequest setTimeLimit(final int limit)
-      throws LocalizedIllegalArgumentException
   {
-    // FIXME: I18N error message.
     Validator.ensureTrue(limit >= 0, "negative time limit");
 
     this.timeLimit = limit;

--
Gitblit v1.10.0