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/SearchResultHandler.java |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/sdk/src/org/opends/sdk/SearchResultHandler.java b/sdk/src/org/opends/sdk/SearchResultHandler.java
index 653e8c6..74ad84c 100644
--- a/sdk/src/org/opends/sdk/SearchResultHandler.java
+++ b/sdk/src/org/opends/sdk/SearchResultHandler.java
@@ -48,35 +48,26 @@
  * Implementations of these methods should complete in a timely manner
  * so as to avoid keeping the invoking thread from dispatching to other
  * completion handlers.
- * 
- * @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 SearchResultHandler<P>
+public interface SearchResultHandler
 {
   /**
    * Invoked each time a search result entry is returned from an
    * asynchronous search operation.
-   * 
-   * @param p
-   *          A handler specified parameter.
+   *
    * @param entry
    *          The search result entry.
    */
-  void handleEntry(P p, SearchResultEntry entry);
+  void handleEntry(SearchResultEntry entry);
 
 
 
   /**
    * Invoked each time a search result reference is returned from an
    * asynchronous search operation.
-   * 
-   * @param p
-   *          A handler specified parameter.
+   *
    * @param reference
    *          The search result reference.
    */
-  void handleReference(P p, SearchResultReference reference);
+  void handleReference(SearchResultReference reference);
 }

--
Gitblit v1.10.0