From a415256cc798baf286d618a2c9ddd427c26a518d Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 14 Dec 2009 13:21:39 +0000
Subject: [PATCH] Remove optional P parameter from result handlers as it is hardly ever needed in practice and just pollutes the APIs.
---
sdk/src/org/opends/sdk/ConnectionResultHandler.java | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/sdk/src/org/opends/sdk/ConnectionResultHandler.java b/sdk/src/org/opends/sdk/ConnectionResultHandler.java
index c4ee3d6..3e9d56e 100644
--- a/sdk/src/org/opends/sdk/ConnectionResultHandler.java
+++ b/sdk/src/org/opends/sdk/ConnectionResultHandler.java
@@ -27,8 +27,6 @@
package org.opends.sdk;
-
-
/**
* A completion handler which is notified when an asynchronous
* connection attempt has completed.
@@ -47,35 +45,27 @@
* @param <C>
* The type of asynchronous connection handled by this
* connection result handler.
- * @param <P>
- * The type of the additional parameter to this handler's
- * methods. Use {@link java.lang.Void} for visitors that do not
- * need an additional parameter.
*/
-public interface ConnectionResultHandler<C extends AsynchronousConnection, P>
+public interface ConnectionResultHandler<C extends AsynchronousConnection>
{
/**
* Invoked when the asynchronous connection has completed
* successfully.
*
- * @param p
- * A handler specified parameter.
* @param connection
* The connection which can be used to interact with the
* Directory Server.
*/
- void handleConnection(P p, C connection);
+ void handleConnection(C connection);
/**
* Invoked when the asynchronous connection attempt has failed.
*
- * @param p
- * A handler specified parameter.
* @param error
* The error result exception indicating why the asynchronous
* connection attempt has failed.
*/
- void handleConnectionError(P p, ErrorResultException error);
+ void handleConnectionError(ErrorResultException error);
}
--
Gitblit v1.10.0