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/CompareRequestImpl.java | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/CompareRequestImpl.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/CompareRequestImpl.java
index 57f3eeb..6246adb 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/CompareRequestImpl.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/CompareRequestImpl.java
@@ -23,13 +23,13 @@
*
*
* Copyright 2010 Sun Microsystems, Inc.
+ * Portions copyright 2012 ForgeRock AS.
*/
package org.forgerock.opendj.ldap.requests;
-import org.forgerock.i18n.LocalizedIllegalArgumentException;
import org.forgerock.opendj.ldap.AttributeDescription;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.DN;
@@ -69,7 +69,7 @@
*/
CompareRequestImpl(final DN name,
final AttributeDescription attributeDescription,
- final ByteString assertionValue) throws NullPointerException
+ final ByteString assertionValue)
{
this.name = name;
this.attributeDescription = attributeDescription;
@@ -88,7 +88,6 @@
* If {@code compareRequest} was {@code null} .
*/
CompareRequestImpl(final CompareRequest compareRequest)
- throws NullPointerException
{
super(compareRequest);
this.name = compareRequest.getName();
@@ -142,7 +141,6 @@
* {@inheritDoc}
*/
public CompareRequest setAssertionValue(final ByteString value)
- throws UnsupportedOperationException, NullPointerException
{
Validator.ensureNotNull(value);
this.assertionValue = value;
@@ -155,7 +153,6 @@
* {@inheritDoc}
*/
public CompareRequest setAssertionValue(final Object value)
- throws UnsupportedOperationException, NullPointerException
{
Validator.ensureNotNull(value);
this.assertionValue = ByteString.valueOf(value);
@@ -169,7 +166,6 @@
*/
public CompareRequest setAttributeDescription(
final AttributeDescription attributeDescription)
- throws UnsupportedOperationException, NullPointerException
{
Validator.ensureNotNull(attributeDescription);
this.attributeDescription = attributeDescription;
@@ -183,8 +179,6 @@
*/
public CompareRequest setAttributeDescription(
final String attributeDescription)
- throws LocalizedIllegalArgumentException, UnsupportedOperationException,
- NullPointerException
{
Validator.ensureNotNull(attributeDescription);
this.attributeDescription = AttributeDescription
@@ -198,7 +192,6 @@
* {@inheritDoc}
*/
public CompareRequest setName(final DN dn)
- throws UnsupportedOperationException, NullPointerException
{
Validator.ensureNotNull(dn);
this.name = dn;
@@ -211,8 +204,6 @@
* {@inheritDoc}
*/
public CompareRequest setName(final String dn)
- throws LocalizedIllegalArgumentException, UnsupportedOperationException,
- NullPointerException
{
Validator.ensureNotNull(dn);
this.name = DN.valueOf(dn);
--
Gitblit v1.10.0