From f2160f4bd1c8ac67e5a86a6710d431e8932877f9 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 28 May 2010 11:47:51 +0000
Subject: [PATCH] Synchronize SDK on java.net with internal repository.
---
sdk/src/org/opends/sdk/responses/AbstractResultImpl.java | 43 +++++++++++--------------------------------
1 files changed, 11 insertions(+), 32 deletions(-)
diff --git a/sdk/src/org/opends/sdk/responses/AbstractResultImpl.java b/sdk/src/org/opends/sdk/responses/AbstractResultImpl.java
index b47259b..8cdc53a 100644
--- a/sdk/src/org/opends/sdk/responses/AbstractResultImpl.java
+++ b/sdk/src/org/opends/sdk/responses/AbstractResultImpl.java
@@ -40,7 +40,7 @@
/**
* Modifiable result implementation.
- *
+ *
* @param <S>
* The type of result.
*/
@@ -61,15 +61,15 @@
/**
- * Creates a new modifiable result implementation using the provided
- * result code.
- *
+ * Creates a new modifiable result implementation using the provided result
+ * code.
+ *
* @param resultCode
* The result code.
* @throws NullPointerException
* If {@code resultCode} was {@code null}.
*/
- AbstractResultImpl(ResultCode resultCode) throws NullPointerException
+ AbstractResultImpl(final ResultCode resultCode) throws NullPointerException
{
this.resultCode = resultCode;
}
@@ -79,7 +79,7 @@
/**
* {@inheritDoc}
*/
- public final S addReferralURI(String uri) throws NullPointerException
+ public final S addReferralURI(final String uri) throws NullPointerException
{
Validator.ensureNotNull(uri);
@@ -92,17 +92,6 @@
/**
* {@inheritDoc}
*/
- public final S clearReferralURIs()
- {
- referralURIs.clear();
- return getThis();
- }
-
-
-
- /**
- * {@inheritDoc}
- */
public final Throwable getCause()
{
return cause;
@@ -133,7 +122,7 @@
/**
* {@inheritDoc}
*/
- public final Iterable<String> getReferralURIs()
+ public final List<String> getReferralURIs()
{
return referralURIs;
}
@@ -153,16 +142,6 @@
/**
* {@inheritDoc}
*/
- public final boolean hasReferralURIs()
- {
- return !referralURIs.isEmpty();
- }
-
-
-
- /**
- * {@inheritDoc}
- */
public final boolean isReferral()
{
final ResultCode code = getResultCode();
@@ -185,7 +164,7 @@
/**
* {@inheritDoc}
*/
- public final S setCause(Throwable cause)
+ public final S setCause(final Throwable cause)
{
this.cause = cause;
return getThis();
@@ -196,7 +175,7 @@
/**
* {@inheritDoc}
*/
- public final S setDiagnosticMessage(String message)
+ public final S setDiagnosticMessage(final String message)
{
if (message == null)
{
@@ -215,7 +194,7 @@
/**
* {@inheritDoc}
*/
- public final S setMatchedDN(String dn)
+ public final S setMatchedDN(final String dn)
{
if (dn == null)
{
@@ -234,7 +213,7 @@
/**
* {@inheritDoc}
*/
- public final S setResultCode(ResultCode resultCode)
+ public final S setResultCode(final ResultCode resultCode)
throws NullPointerException
{
Validator.ensureNotNull(resultCode);
--
Gitblit v1.10.0