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

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AuthenticatedConnectionFactory.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AuthenticatedConnectionFactory.java
index 93cdff3..eef6cd0 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AuthenticatedConnectionFactory.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AuthenticatedConnectionFactory.java
@@ -75,16 +75,14 @@
         /**
          * {@inheritDoc}
          */
-        public BindResult bind(BindRequest request) throws ErrorResultException,
-                InterruptedException {
+        public BindResult bind(BindRequest request) throws ErrorResultException {
             throw new UnsupportedOperationException();
         }
 
         /**
          * {@inheritDoc}
          */
-        public BindResult bind(String name, char[] password) throws ErrorResultException,
-                InterruptedException {
+        public BindResult bind(String name, char[] password) throws ErrorResultException {
             throw new UnsupportedOperationException();
         }
 
@@ -175,7 +173,7 @@
     /**
      * {@inheritDoc}
      */
-    public Connection getConnection() throws ErrorResultException, InterruptedException {
+    public Connection getConnection() throws ErrorResultException {
         final Connection connection = parentFactory.getConnection();
         boolean bindSucceeded = false;
         try {
@@ -187,8 +185,7 @@
             }
         }
         // If the bind didn't succeed then an exception will have been thrown
-        // and
-        // this line will not be reached.
+        // and this line will not be reached.
         return new AuthenticatedConnection(connection);
     }
 

--
Gitblit v1.10.0