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/com/sun/opends/sdk/tools/LDAPSearch.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/sdk/src/com/sun/opends/sdk/tools/LDAPSearch.java b/sdk/src/com/sun/opends/sdk/tools/LDAPSearch.java
index d58a2bb..2bc5d85 100644
--- a/sdk/src/com/sun/opends/sdk/tools/LDAPSearch.java
+++ b/sdk/src/com/sun/opends/sdk/tools/LDAPSearch.java
@@ -65,8 +65,7 @@
- private class LDAPSearchResultHandler implements
- SearchResultHandler<Void>
+ private class LDAPSearchResultHandler implements SearchResultHandler
{
private int entryCount = 0;
@@ -75,7 +74,7 @@
/**
* {@inheritDoc}
*/
- public void handleEntry(Void p, SearchResultEntry entry)
+ public void handleEntry(SearchResultEntry entry)
{
entryCount++;
@@ -168,7 +167,7 @@
/**
* {@inheritDoc}
*/
- public void handleReference(Void p, SearchResultReference reference)
+ public void handleReference(SearchResultReference reference)
{
println(LocalizableMessage.raw(reference.toString()));
}
@@ -1041,7 +1040,7 @@
Result result;
try
{
- result = connection.search(search, resultHandler, null);
+ result = connection.search(search, resultHandler);
}
catch (InterruptedException e)
{
--
Gitblit v1.10.0