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

neil_a_wilson
01.48.2007 dd1bb3f0d7b691f4134288b07d1b5f602c1df72c
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
opends/src/server/org/opends/server/types/Attribute.java 16 ●●●● patch | view | raw | blame | history
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));