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/AbstractUnmodifiableResultImpl.java |   41 ++++++++++++++---------------------------
 1 files changed, 14 insertions(+), 27 deletions(-)

diff --git a/sdk/src/org/opends/sdk/responses/AbstractUnmodifiableResultImpl.java b/sdk/src/org/opends/sdk/responses/AbstractUnmodifiableResultImpl.java
index 5873fd4..fa64f00 100644
--- a/sdk/src/org/opends/sdk/responses/AbstractUnmodifiableResultImpl.java
+++ b/sdk/src/org/opends/sdk/responses/AbstractUnmodifiableResultImpl.java
@@ -29,13 +29,16 @@
 
 
 
+import java.util.Collections;
+import java.util.List;
+
 import org.opends.sdk.ResultCode;
 
 
 
 /**
  * Unmodifiable result implementation.
- * 
+ *
  * @param <S>
  *          The type of result.
  */
@@ -49,12 +52,11 @@
 
   /**
    * Creates a new unmodifiable result implementation.
-   * 
+   *
    * @param impl
-   *          The underlying result implementation to be made
-   *          unmodifiable.
+   *          The underlying result implementation to be made unmodifiable.
    */
-  AbstractUnmodifiableResultImpl(S impl)
+  AbstractUnmodifiableResultImpl(final S impl)
   {
     super(impl);
     this.impl = impl;
@@ -62,7 +64,7 @@
 
 
 
-  public final S addReferralURI(String uri)
+  public final S addReferralURI(final String uri)
       throws UnsupportedOperationException, NullPointerException
   {
     throw new UnsupportedOperationException();
@@ -70,14 +72,6 @@
 
 
 
-  public final S clearReferralURIs()
-      throws UnsupportedOperationException
-  {
-    throw new UnsupportedOperationException();
-  }
-
-
-
   public final Throwable getCause()
   {
     return impl.getCause();
@@ -99,9 +93,9 @@
 
 
 
-  public final Iterable<String> getReferralURIs()
+  public final List<String> getReferralURIs()
   {
-    return impl.getReferralURIs();
+    return Collections.unmodifiableList(impl.getReferralURIs());
   }
 
 
@@ -113,13 +107,6 @@
 
 
 
-  public final boolean hasReferralURIs()
-  {
-    return impl.hasReferralURIs();
-  }
-
-
-
   public final boolean isReferral()
   {
     return impl.isReferral();
@@ -134,7 +121,7 @@
 
 
 
-  public final S setCause(Throwable cause)
+  public final S setCause(final Throwable cause)
       throws UnsupportedOperationException
   {
     throw new UnsupportedOperationException();
@@ -142,7 +129,7 @@
 
 
 
-  public final S setDiagnosticMessage(String message)
+  public final S setDiagnosticMessage(final String message)
       throws UnsupportedOperationException
   {
     throw new UnsupportedOperationException();
@@ -150,7 +137,7 @@
 
 
 
-  public final S setMatchedDN(String dn)
+  public final S setMatchedDN(final String dn)
       throws UnsupportedOperationException
   {
     throw new UnsupportedOperationException();
@@ -158,7 +145,7 @@
 
 
 
-  public final S setResultCode(ResultCode resultCode)
+  public final S setResultCode(final ResultCode resultCode)
       throws UnsupportedOperationException, NullPointerException
   {
     throw new UnsupportedOperationException();

--
Gitblit v1.10.0