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/Connection.java |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/sdk/src/org/opends/sdk/Connection.java b/sdk/src/org/opends/sdk/Connection.java
index cf2cfaf..74ee0fd 100644
--- a/sdk/src/org/opends/sdk/Connection.java
+++ b/sdk/src/org/opends/sdk/Connection.java
@@ -1126,17 +1126,12 @@
    * result references will be passed to the provided search result
    * handler.
    *
-   * @param <P>
-   *          The type of the additional parameter to the handler's
-   *          methods.
    * @param request
    *          The search request.
    * @param handler
    *          A search result handler which can be used to process the
    *          search result entries and references as they are received,
    *          may be {@code null}.
-   * @param p
-   *          Optional additional handler parameter.
    * @return The result of the operation.
    * @throws ErrorResultException
    *           If the result code indicates that the request failed for
@@ -1151,10 +1146,10 @@
    * @throws NullPointerException
    *           If {@code request} was {@code null}.
    */
-  <P> Result search(SearchRequest request,
-      SearchResultHandler<P> handler, P p) throws ErrorResultException,
-      InterruptedException, UnsupportedOperationException,
-      IllegalStateException, NullPointerException;
+  Result search(SearchRequest request, SearchResultHandler handler)
+      throws ErrorResultException, InterruptedException,
+      UnsupportedOperationException, IllegalStateException,
+      NullPointerException;
 
 
 

--
Gitblit v1.10.0