From 8adb7af006bb6bf8a71f86bb520671de381c8e3e Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 13 Feb 2013 09:49:16 +0000
Subject: [PATCH] Minor API cleanup to make it easier to use.
---
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Attribute.java | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Attribute.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Attribute.java
index c7ace49..5932a3d 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Attribute.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/Attribute.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2009 Sun Microsystems, Inc.
- * Portions copyright 2012 ForgeRock AS.
+ * Portions copyright 2012-2013 ForgeRock AS.
*/
package org.forgerock.opendj.ldap;
@@ -69,18 +69,16 @@
* Any attribute values which are not instances of {@code ByteString} will
* be converted using the {@link ByteString#valueOf(Object)} method.
*
- * @param firstValue
- * The first attribute value to be added to this attribute.
- * @param remainingValues
- * The remaining attribute values to be added to this attribute.
+ * @param values
+ * The attribute values to be added to this attribute.
* @return {@code true} if this attribute changed as a result of this call.
* @throws UnsupportedOperationException
* If this attribute does not support addition of attribute
* values.
* @throws NullPointerException
- * If {@code firstValue} was {@code null}.
+ * If {@code values} was {@code null}.
*/
- boolean add(Object firstValue, Object... remainingValues);
+ boolean add(Object... values);
/**
* Adds all of the attribute values contained in {@code values} to this
--
Gitblit v1.10.0