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

Jean-Noel Rouvignac
20.03.2015 f03c80852380d47f9c0abe4e64898fdc9961b0b3
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/MenuResult.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 *      Portions Copyright 2014-2015 ForgeRock AS
 */
package com.forgerock.opendj.cli;
@@ -194,11 +194,10 @@
     * @see #isSuccess()
     */
    public T getValue() {
        if (values.isEmpty()) {
            return null;
        } else {
        if (!values.isEmpty()) {
            return values.iterator().next();
        }
        return null;
    }
    /**
@@ -258,4 +257,9 @@
    public boolean isSuccess() {
        return type == Type.SUCCESS;
    }
    @Override
    public String toString() {
        return getClass().getSimpleName() + "(type=" + type + ", values=" + values + ")";
    }
}