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/RootDSE.java |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.java
index 067d9d2..ef9e9e6 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.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;
@@ -158,8 +158,6 @@
    */
   public static FutureResult<RootDSE> readRootDSEAsync(
       final Connection connection, final ResultHandler<? super RootDSE> handler)
-      throws UnsupportedOperationException, IllegalStateException,
-      NullPointerException
   {
     final FutureResultTransformer<SearchResultEntry, RootDSE> future =
       new FutureResultTransformer<SearchResultEntry, RootDSE>(handler)
@@ -206,9 +204,7 @@
    *           If the {@code connection} was {@code null}.
    */
   public static RootDSE readRootDSE(final Connection connection)
-      throws ErrorResultException, InterruptedException,
-      UnsupportedOperationException, IllegalStateException,
-      NullPointerException
+      throws ErrorResultException, InterruptedException
   {
     final Entry entry = connection.searchSingleEntry(SEARCH_REQUEST);
     return valueOf(entry);
@@ -229,7 +225,7 @@
    * @throws NullPointerException
    *           If {@code entry} was {@code null} .
    */
-  public static RootDSE valueOf(Entry entry) throws NullPointerException
+  public static RootDSE valueOf(Entry entry)
   {
     Validator.ensureNotNull(entry);
     return new RootDSE(entry);
@@ -242,7 +238,7 @@
 
 
   // Prevent direct instantiation.
-  private RootDSE(final Entry entry) throws NullPointerException
+  private RootDSE(final Entry entry)
   {
     this.entry = entry;
   }

--
Gitblit v1.10.0