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

Violette Roche-Montane
24.31.2014 9826d4193d9db5cb3fcc11feb16295a558d86b37
opendj3-server-dev/src/server/org/opends/server/tools/status/StatusCli.java
@@ -680,11 +680,14 @@
  }
  /**
   * Updates the java version contents displaying with what is specified in
   * the provided ServerDescriptor object.
   * This method must be called from the event thread.
   * @param desc the ServerDescriptor object.
   * @param maxLabelWidth the maximum label width of the left label.
   * Updates the java version contents displaying with what is specified in the
   * provided ServerDescriptor object. This method must be called from the event
   * thread.
   *
   * @param desc
   *          The ServerDescriptor object.
   * @param maxLabelWidth
   *          The maximum label width of the left label.
   */
  private void writeJavaVersionContents(ServerDescriptor desc,
      int maxLabelWidth)
@@ -692,17 +695,13 @@
    LocalizableMessage text;
    if (desc.getStatus() == ServerDescriptor.ServerStatus.STARTED)
    {
      text = LocalizableMessage.raw(desc.getJavaVersion());
      if (text == null)
      if (!desc.isAuthenticated() || !desc.getExceptions().isEmpty())
      {
        if (!desc.isAuthenticated() || !desc.getExceptions().isEmpty())
        {
          text = getNotAvailableBecauseAuthenticationIsRequiredText();
        }
        else
        {
          text = getNotAvailableText();
        }
        text = getNotAvailableBecauseAuthenticationIsRequiredText();
      }
      else
      {
        text = LocalizableMessage.raw(desc.getJavaVersion());
      }
    }
    else