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

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RDN.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RDN.java
index 9e52acc..efdf5cf 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RDN.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RDN.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2009-2010 Sun Microsystems, Inc.
- *      Portions copyright 2011 ForgeRock AS.
+ *      Portions copyright 2011-2012 ForgeRock AS.
  */
 
 package org.forgerock.opendj.ldap;
@@ -122,7 +122,6 @@
    *           If {@code rdn} was {@code null}.
    */
   public static RDN valueOf(final String rdn)
-      throws LocalizedIllegalArgumentException, NullPointerException
   {
     return valueOf(rdn, Schema.getDefaultSchema());
   }
@@ -145,7 +144,6 @@
    *           If {@code rdn} or {@code schema} was {@code null}.
    */
   public static RDN valueOf(final String rdn, final Schema schema)
-      throws LocalizedIllegalArgumentException, NullPointerException
   {
     final SubstringReader reader = new SubstringReader(rdn);
     try
@@ -165,8 +163,7 @@
   // FIXME: ensure that the decoded RDN does not contain multiple AVAs
   // with the same type.
   static RDN decode(final String rdnString, final SubstringReader reader,
-      final Schema schema) throws LocalizedIllegalArgumentException,
-      UnknownSchemaElementException
+      final Schema schema)
   {
     final AVA firstAVA = AVA.decode(reader, schema);
 
@@ -223,7 +220,6 @@
    *           null}.
    */
   public RDN(final AttributeType attributeType, final ByteString attributeValue)
-      throws NullPointerException
   {
     this.avas = new AVA[] { new AVA(attributeType, attributeValue) };
   }
@@ -248,7 +244,6 @@
    *           null}.
    */
   public RDN(final String attributeType, final Object attributeValue)
-      throws UnknownSchemaElementException, NullPointerException
   {
     this.avas = new AVA[] { new AVA(attributeType, attributeValue) };
   }

--
Gitblit v1.10.0