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/AbstractMapEntry.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractMapEntry.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractMapEntry.java
index 08e0e0b..89030e9 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractMapEntry.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractMapEntry.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2009-2010 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 
 package org.forgerock.opendj.ldap;
@@ -58,7 +59,6 @@
    */
   AbstractMapEntry(final DN name,
       final Map<AttributeDescription, Attribute> attributes)
-      throws NullPointerException
   {
     this.name = name;
     this.attributes = attributes;
@@ -70,7 +70,7 @@
    * {@inheritDoc}
    */
   public final boolean addAttribute(final Attribute attribute,
-      final Collection<ByteString> duplicateValues) throws NullPointerException
+      final Collection<ByteString> duplicateValues)
   {
     Validator.ensureNotNull(attribute);
 
@@ -116,7 +116,6 @@
    */
   public final Attribute getAttribute(
       final AttributeDescription attributeDescription)
-      throws NullPointerException
   {
     Validator.ensureNotNull(attributeDescription);
 
@@ -149,7 +148,7 @@
    * {@inheritDoc}
    */
   public final boolean removeAttribute(final Attribute attribute,
-      final Collection<ByteString> missingValues) throws NullPointerException
+      final Collection<ByteString> missingValues)
   {
     Validator.ensureNotNull(attribute);
 
@@ -190,7 +189,7 @@
   /**
    * {@inheritDoc}
    */
-  public final Entry setName(final DN dn) throws NullPointerException
+  public final Entry setName(final DN dn)
   {
     Validator.ensureNotNull(dn);
     this.name = dn;

--
Gitblit v1.10.0