From 4ea2bc73aa3a298a61532530eb177704fa4a569f 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.
---
opendj-sdk/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/opendj-sdk/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java b/opendj-sdk/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java
index bec779a..df3a43b 100644
--- a/opendj-sdk/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java
+++ b/opendj-sdk/sdk/src/org/opends/sdk/AuthenticatedConnectionFactory.java
@@ -57,12 +57,12 @@
* ErrorResultException} will be thrown.
*/
final class AuthenticatedConnectionFactory extends
- AbstractConnectionFactory<AsynchronousConnection>
+ AbstractConnectionFactory
{
private final BindRequest request;
- private final ConnectionFactory<?> parentFactory;
+ private final ConnectionFactory parentFactory;
@@ -77,7 +77,7 @@
* @param request
* The Bind request to use for authentication.
*/
- AuthenticatedConnectionFactory(ConnectionFactory<?> factory,
+ AuthenticatedConnectionFactory(ConnectionFactory factory,
BindRequest request) throws NullPointerException
{
this.parentFactory = factory;
@@ -92,7 +92,7 @@
* {@inheritDoc}
*/
public FutureResult<AsynchronousConnection> getAsynchronousConnection(
- ResultHandler<? super AsynchronousConnection> handler)
+ ResultHandler<AsynchronousConnection> handler)
{
FutureResultImpl future = new FutureResultImpl(request, handler);
future.futureConnectionResult.setFutureResult(parentFactory
@@ -253,7 +253,8 @@
/**
* {@inheritDoc}
*/
- public boolean isValid() {
+ public boolean isValid()
+ {
return connection.isValid();
}
--
Gitblit v1.10.0