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/ConnectionFactory.java |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/sdk/src/org/opends/sdk/ConnectionFactory.java b/sdk/src/org/opends/sdk/ConnectionFactory.java
index 8d8d998..ed345b9 100644
--- a/sdk/src/org/opends/sdk/ConnectionFactory.java
+++ b/sdk/src/org/opends/sdk/ConnectionFactory.java
@@ -27,8 +27,6 @@
 
 package org.opends.sdk;
 
-
-
 /**
  * A connection factory provides an interface for obtaining a connection
  * to a Directory Server. Connection factories can be used to wrap other
@@ -79,17 +77,12 @@
    * ConnectionResultHandler} is provided, the handler will be notified
    * when the connection is available and ready for use.
    *
-   * @param <P>
-   *          The type of the additional parameter to the handler's
-   *          methods.
    * @param handler
    *          The completion handler, or {@code null} if no handler is
    *          to be used.
-   * @param p
-   *          Optional additional handler parameter.
    * @return A future which can be used to retrieve the asynchronous
    *         connection.
    */
-  <P> ConnectionFuture<? extends C> getAsynchronousConnection(
-      ConnectionResultHandler<? super C, P> handler, P p);
+  ConnectionFuture<? extends C> getAsynchronousConnection(
+      ConnectionResultHandler<? super C> handler);
 }

--
Gitblit v1.10.0