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/ldap/schema/Schema.java |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/Schema.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/Schema.java
index 303f04e..14e967e 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/Schema.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/Schema.java
@@ -1184,8 +1184,6 @@
      * @throws ErrorResultException
      *             If the result code indicates that the request failed for some
      *             reason.
-     * @throws InterruptedException
-     *             If the current thread was interrupted while waiting.
      * @throws UnsupportedOperationException
      *             If the connection does not support search operations.
      * @throws IllegalStateException
@@ -1195,7 +1193,7 @@
      *             If the {@code connection} or {@code name} was {@code null}.
      */
     public static Schema readSchema(final Connection connection, final DN name)
-            throws ErrorResultException, InterruptedException {
+            throws ErrorResultException {
         return new SchemaBuilder().addSchema(connection, name, true).toSchema();
     }
 
@@ -1276,8 +1274,6 @@
      * @throws ErrorResultException
      *             If the result code indicates that the request failed for some
      *             reason.
-     * @throws InterruptedException
-     *             If the current thread was interrupted while waiting.
      * @throws UnsupportedOperationException
      *             If the connection does not support search operations.
      * @throws IllegalStateException
@@ -1287,7 +1283,7 @@
      *             If the {@code connection} or {@code name} was {@code null}.
      */
     public static Schema readSchemaForEntry(final Connection connection, final DN name)
-            throws ErrorResultException, InterruptedException {
+            throws ErrorResultException {
         return new SchemaBuilder().addSchemaForEntry(connection, name, true).toSchema();
     }
 

--
Gitblit v1.10.0