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

lutoff
05.28.2007 11dbb6598b00c6ef4b5e48ae85210ced425826a5
Remove hardcoded message id inside code
3 files modified
16 ■■■■ changed files
opends/src/ads/org/opends/admin/ads/DsServiceCliMain.java 2 ●●● patch | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/DsServiceCliReturnCode.java 6 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/messages/AdminMessages.java 8 ●●●●● patch | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/DsServiceCliMain.java
@@ -261,7 +261,7 @@
      }
    }
    else
    if (msgID != -1)
    if (msgID != MSGID_ADMIN_NO_MESSAGE)
    {
      message = getMessage(MSGID_ADMIN_ERROR);
      message = message + getMessage(msgID);
opends/src/ads/org/opends/admin/ads/DsServiceCliReturnCode.java
@@ -53,16 +53,16 @@
    /**
     * Unable to initialze arguments.
     */
    CANNOT_INITIALIZE_ARGS(1, -1),
    CANNOT_INITIALIZE_ARGS(1, MSGID_ADMIN_NO_MESSAGE),
    /**
     * Cannot parse argument.
     */
    ERROR_PARSING_ARGS(2, -1),
    ERROR_PARSING_ARGS(2, MSGID_ADMIN_NO_MESSAGE),
    /**
     * Return code: Cannot get the connection to the ADS.
     */
    CANNOT_CONNECT_TO_ADS(3, -1),
    CANNOT_CONNECT_TO_ADS(3, MSGID_ADMIN_NO_MESSAGE),
    /**
     * The host name is missing.
opends/src/server/org/opends/server/messages/AdminMessages.java
@@ -448,6 +448,13 @@
  public static final int MSGID_ADMIN_SUCCESSFUL_NOP=
    CATEGORY_MASK_ADMIN | SEVERITY_MASK_INFORMATIONAL | 51;
  /**
   * The message ID which indicate that no message is required.
   */
  public static final int MSGID_ADMIN_NO_MESSAGE =
    CATEGORY_MASK_ADMIN | SEVERITY_MASK_SEVERE_ERROR | 52;
  // Prevent instantiation.
  private AdminMessages() {
@@ -612,5 +619,6 @@
    registerMessage(MSGID_ADMIN_SUCCESSFUL_NOP,
       "The operation has been successfully completed, "+
       "but no action was required");
    registerMessage(MSGID_ADMIN_NO_MESSAGE,"");
  }
}