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/ldif/ConnectionEntryReader.java |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryReader.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryReader.java
index c522788..8063e2c 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryReader.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryReader.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.ldif;
@@ -209,7 +209,7 @@
    *           If {@code connection} was {@code null}.
    */
   public ConnectionEntryReader(final Connection connection,
-      final SearchRequest searchRequest) throws NullPointerException
+      final SearchRequest searchRequest)
   {
     this(connection, searchRequest, new LinkedBlockingQueue<Response>());
   }
@@ -232,7 +232,6 @@
    */
   public ConnectionEntryReader(final Connection connection,
       final SearchRequest searchRequest, final BlockingQueue<Response> entries)
-      throws NullPointerException
   {
     Validator.ensureNotNull(connection);
     buffer = new BufferHandler(entries);
@@ -299,7 +298,7 @@
    *           search result code indicates that the search operation succeeded.
    */
   public boolean isEntry() throws ErrorResultIOException,
-      InterruptedIOException, NoSuchElementException
+      InterruptedIOException
   {
     // Throws ErrorResultIOException if search returned error.
     if (!hasNext())
@@ -345,7 +344,7 @@
    *           search result code indicates that the search operation succeeded.
    */
   public boolean isReference() throws ErrorResultIOException,
-      InterruptedIOException, NoSuchElementException
+      InterruptedIOException
   {
     return !isEntry();
   }
@@ -376,7 +375,7 @@
    */
   @Override
   public SearchResultEntry readEntry() throws SearchResultReferenceIOException,
-      ErrorResultIOException, InterruptedIOException, NoSuchElementException
+      ErrorResultIOException, InterruptedIOException
   {
     if (isEntry())
     {
@@ -413,7 +412,7 @@
    *           search result code indicates that the search operation succeeded.
    */
   public SearchResultReference readReference() throws ErrorResultIOException,
-      InterruptedIOException, NoSuchElementException
+      InterruptedIOException
   {
     if (isReference())
     {

--
Gitblit v1.10.0