mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
01.48.2007 4a1acc1d254573f967ae85f5ac4d61c8fbaf958f
Fix various documentation problems with the Attribute constructor which takes
two String arguments. The documentation did not state that the provided name
had to be in all lowercase characters, and it also suggested that it was
possible to provide multiple values, which is not true.

OpenDS Issue Number: 1199
1 files modified
16 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/types/Attribute.java 16 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/types/Attribute.java
@@ -145,19 +145,19 @@
  /**
   * Creates a new attribute with the specified type, user-provided
   * name, and set of values.
   * Creates a new attribute with the specified name and value.
   *
   * @param  typeString   The String representation of the attribute
   *                      type for this attribute.
   * @param  lowerName    The name or OID of the attribute type for
   *                      this attribute, formatted in all lowercase
   *                      characters.
   * @param  valueString  The String representation of the attribute
   *                      value
   *                      value.
   */
  public Attribute(String typeString, String valueString)
  public Attribute(String lowerName, String valueString)
  {
    this.attributeType =
         DirectoryServer.getAttributeType(typeString, true);
    this.name = typeString;
         DirectoryServer.getAttributeType(lowerName, true);
    this.name = lowerName;
    this.values = new LinkedHashSet<AttributeValue>();
    this.values.add(new AttributeValue(this.attributeType,
                                       valueString));