From 6bef18d19414f3680165472e37dc4444da765f13 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 11 Jan 2010 14:23:49 +0000
Subject: [PATCH] Fix SDK issue 4421: Remove generic AsynchronousConnection parameter from ConnectionFactory.
---
sdk/src/org/opends/sdk/ConnectionFactory.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/sdk/src/org/opends/sdk/ConnectionFactory.java b/sdk/src/org/opends/sdk/ConnectionFactory.java
index 67aab1a..82f70cc 100644
--- a/sdk/src/org/opends/sdk/ConnectionFactory.java
+++ b/sdk/src/org/opends/sdk/ConnectionFactory.java
@@ -49,11 +49,8 @@
* connection. Applications should aim to close connections as soon as
* possible in order to avoid resource contention.
*
- * @param <C>
- * The type of asynchronous connection returned by this
- * connection factory.
*/
-public interface ConnectionFactory<C extends AsynchronousConnection>
+public interface ConnectionFactory
{
/**
* Returns a connection to the Directory Server associated with this
@@ -83,6 +80,6 @@
* @return A future which can be used to retrieve the asynchronous
* connection.
*/
- FutureResult<? extends C> getAsynchronousConnection(
- ResultHandler<? super C> handler);
+ FutureResult<AsynchronousConnection> getAsynchronousConnection(
+ ResultHandler<AsynchronousConnection> handler);
}
--
Gitblit v1.10.0