From f134ef63e016bf13b70bef1ec277603b8a9a6f21 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 25 Apr 2012 11:06:50 +0000
Subject: [PATCH] Fix OPENDJ-474: Remove requirement for clients to deal with InterruptedExceptions in synchronous APIs

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryWriter.java |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryWriter.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryWriter.java
index 7960a5d..63abe9f 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryWriter.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldif/ConnectionEntryWriter.java
@@ -27,8 +27,6 @@
 
 package org.forgerock.opendj.ldif;
 
-import java.io.InterruptedIOException;
-
 import org.forgerock.opendj.ldap.Connection;
 import org.forgerock.opendj.ldap.Entry;
 import org.forgerock.opendj.ldap.ErrorResultException;
@@ -109,20 +107,15 @@
      * @throws ErrorResultIOException
      *             If the result code indicates that the request failed for some
      *             reason.
-     * @throws InterruptedIOException
-     *             If the current thread was interrupted while waiting.
      * @throws NullPointerException
      *             If {@code entry} was {@code null}.
      */
-    public ConnectionEntryWriter writeEntry(final Entry entry) throws ErrorResultIOException,
-            InterruptedIOException {
+    public ConnectionEntryWriter writeEntry(final Entry entry) throws ErrorResultIOException {
         Validator.ensureNotNull(entry);
         try {
             connection.add(entry);
         } catch (final ErrorResultException e) {
             throw new ErrorResultIOException(e);
-        } catch (final InterruptedException e) {
-            throw new InterruptedIOException(e.getMessage());
         }
         return this;
     }

--
Gitblit v1.10.0