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

neil_a_wilson
07.44.2007 557168f679aaa1808644aa7a47e7e902acad5d37
Fix a few cases in which a message was used with an incorrect number of
arguments.
2 files modified
17 ■■■■ changed files
opends/src/server/org/opends/server/config/BooleanConfigAttribute.java 13 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/messages/ConfigMessages.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/config/BooleanConfigAttribute.java
@@ -353,7 +353,7 @@
    else
    {
      int    msgID   = MSGID_CONFIG_ATTR_INVALID_BOOLEAN_VALUE;
      String message = getMessage(msgID, valueString);
      String message = getMessage(msgID, getName(), valueString);
      throw new ConfigException(msgID, message);
    }
  }
@@ -483,7 +483,7 @@
            {
              // This is an illegal value.
              int msgID = MSGID_CONFIG_ATTR_INVALID_BOOLEAN_VALUE;
              String message = getMessage(msgID, valueString);
              String message = getMessage(msgID, getName(), valueString);
              throw new ConfigException(msgID, message);
            }
@@ -547,7 +547,7 @@
          {
            // This is an illegal value.
            int msgID = MSGID_CONFIG_ATTR_INVALID_BOOLEAN_VALUE;
            String message = getMessage(msgID, valueString);
            String message = getMessage(msgID, getName(), valueString);
            throw new ConfigException(msgID, message);
          }
@@ -718,15 +718,16 @@
      else
      {
        int    msgID   = MSGID_CONFIG_ATTR_INVALID_BOOLEAN_VALUE;
        String message = getMessage(msgID, stringValue);
        String message = getMessage(msgID, getName(), stringValue);
        throw new ConfigException(msgID, message);
      }
    }
    else
    {
      int    msgID   = MSGID_CONFIG_ATTR_INVALID_BOOLEAN_VALUE;
      String message = getMessage(msgID, value.getClass().getName() + ":" +
                                         String.valueOf(value));
      String message = getMessage(msgID, getName(),
                                  value.getClass().getName() + ":" +
                                       String.valueOf(value));
      throw new ConfigException(msgID, message);
    }
  }
opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -106,8 +106,8 @@
  /**
   * The message ID for the message that will be used if an attempt is made to
   * assign an inappropriate value to a boolean attribute.  This takes a single
   * argument, which is the provided invalid value.
   * assign an inappropriate value to a boolean attribute.  This takes a two
   * arguments, which are the attribute name and the provided invalid value.
   */
  public static final int MSGID_CONFIG_ATTR_INVALID_BOOLEAN_VALUE =
       CATEGORY_MASK_CONFIG | SEVERITY_MASK_MILD_ERROR | 7;