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

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java
index 3ae1e45..abb2891 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AVA.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2010 Sun Microsystems, Inc.
- *      Portions copyright 2011 ForgeRock AS.
+ *      Portions copyright 2011-2012 ForgeRock AS.
  */
 
 package org.forgerock.opendj.ldap;
@@ -78,7 +78,6 @@
    *           If {@code ava} was {@code null}.
    */
   public static AVA valueOf(final String ava)
-      throws LocalizedIllegalArgumentException, NullPointerException
   {
     return valueOf(ava, Schema.getDefaultSchema());
   }
@@ -101,7 +100,6 @@
    *           If {@code ava} or {@code schema} was {@code null}.
    */
   public static AVA valueOf(final String ava, final Schema schema)
-      throws LocalizedIllegalArgumentException, NullPointerException
   {
     final SubstringReader reader = new SubstringReader(ava);
     try
@@ -119,7 +117,6 @@
 
 
   static AVA decode(final SubstringReader reader, final Schema schema)
-      throws LocalizedIllegalArgumentException, UnknownSchemaElementException
   {
     // Skip over any spaces at the beginning.
     reader.skipWhitespaces();
@@ -409,8 +406,7 @@
 
 
   private static AttributeType readAttributeName(final SubstringReader reader,
-      final Schema schema) throws LocalizedIllegalArgumentException,
-      UnknownSchemaElementException
+      final Schema schema)
   {
     int length = 1;
     reader.mark();
@@ -499,7 +495,6 @@
 
 
   private static ByteString readAttributeValue(final SubstringReader reader)
-      throws LocalizedIllegalArgumentException
   {
     // All leading spaces have already been stripped so we can start
     // reading the value. However, it may be empty so check for that.
@@ -680,7 +675,6 @@
    *           {@code null}.
    */
   public AVA(final AttributeType attributeType, final ByteString attributeValue)
-      throws NullPointerException
   {
     Validator.ensureNotNull(attributeType, attributeValue);
 
@@ -708,7 +702,6 @@
    *           {@code null}.
    */
   public AVA(final String attributeType, final Object attributeValue)
-      throws UnknownSchemaElementException, NullPointerException
   {
     Validator.ensureNotNull(attributeType, attributeValue);
 

--
Gitblit v1.10.0