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

jcduff
23.04.2008 f73b655466092169abac34833fb628fce1fcdebe
opends/src/server/org/opends/server/config/MultiChoiceConfigAttribute.java
@@ -290,7 +290,7 @@
   *
   * @return  The attribute syntax for this configuration attribute.
   */
  public AttributeSyntax getSyntax()
  public AttributeSyntax<?> getSyntax()
  {
    return DirectoryServer.getDefaultStringSyntax();
  }
@@ -832,8 +832,7 @@
          }
          LinkedHashSet<AttributeValue> values = a.getValues();
          if (values.isEmpty())
          if (a.isEmpty())
          {
            if (isRequired())
            {
@@ -849,7 +848,7 @@
          }
          else
          {
            int numValues = values.size();
            int numValues = a.size();
            if ((numValues > 1) && (! isMultiValued()))
            {
              // This is illegal -- the attribute is single-valued.
@@ -859,7 +858,7 @@
            }
            pendingValues = new ArrayList<String>(numValues);
            for (AttributeValue v : values)
            for (AttributeValue v : a)
            {
              String lowerValue = v.getStringValue().toLowerCase();
              if (! allowedValues.contains(lowerValue))
@@ -895,8 +894,7 @@
        }
        LinkedHashSet<AttributeValue> values = a.getValues();
        if (values.isEmpty())
        if (a.isEmpty())
        {
          if (isRequired())
          {
@@ -912,7 +910,7 @@
        }
        else
        {
          int numValues = values.size();
          int numValues = a.size();
          if ((numValues > 1) && (! isMultiValued()))
          {
            // This is illegal -- the attribute is single-valued.
@@ -922,7 +920,7 @@
          }
          activeValues = new ArrayList<String>(numValues);
          for (AttributeValue v : values)
          for (AttributeValue v : a)
          {
            String lowerValue = v.getStringValue().toLowerCase();
            if (! allowedValues.contains(lowerValue))