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/ResultHandler.java | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/sdk/src/org/opends/sdk/ResultHandler.java b/sdk/src/org/opends/sdk/ResultHandler.java
index 84d638b..0b885c4 100644
--- a/sdk/src/org/opends/sdk/ResultHandler.java
+++ b/sdk/src/org/opends/sdk/ResultHandler.java
@@ -43,33 +43,25 @@
*
* @param <S>
* The type of result handled by this 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 ResultHandler<S, P>
+public interface ResultHandler<S>
{
/**
* Invoked when the asynchronous operation has failed.
*
- * @param p
- * A handler specified parameter.
* @param error
* The error result exception indicating why the asynchronous
* operation has failed.
*/
- void handleErrorResult(P p, ErrorResultException error);
+ void handleErrorResult(ErrorResultException error);
/**
* Invoked when the asynchronous operation has completed successfully.
*
- * @param p
- * A handler specified parameter.
* @param result
* The result of the asynchronous operation.
*/
- void handleResult(P p, S result);
+ void handleResult(S result);
}
--
Gitblit v1.10.0