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

Jean-Noel Rouvignac
27.18.2015 89c103b6b1164cc89c844dc3055586ffaab4070a
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/MenuResult.java
@@ -55,9 +55,7 @@
 */
public final class MenuResult<T> {
    /**
     * The type of result returned from the menu.
     */
    /** The type of result returned from the menu. */
    private static enum Type {
        /**
         * The user selected an option which did not return a result,
@@ -95,7 +93,7 @@
     * @return Returns a new menu result indicating that the menu should be displayed again.
     */
    public static <T> MenuResult<T> again() {
        return new MenuResult<T>(Type.AGAIN, Collections.<T> emptyList());
        return new MenuResult<>(Type.AGAIN, Collections.<T> emptyList());
    }
    /**
@@ -109,7 +107,7 @@
     *         back to the previous main menu if applicable.
     */
    public static <T> MenuResult<T> cancel() {
        return new MenuResult<T>(Type.CANCEL, Collections.<T> emptyList());
        return new MenuResult<>(Type.CANCEL, Collections.<T> emptyList());
    }
    /**
@@ -123,7 +121,7 @@
     *         outstanding tasks.
     */
    public static <T> MenuResult<T> quit() {
        return new MenuResult<T>(Type.QUIT, Collections.<T> emptyList());
        return new MenuResult<>(Type.QUIT, Collections.<T> emptyList());
    }
    /**
@@ -154,7 +152,7 @@
     *         retrieved using {@link #getValue()} or {@link #getValues()}.
     */
    public static <T> MenuResult<T> success(Collection<T> values) {
        return new MenuResult<T>(Type.SUCCESS, new ArrayList<T>(values));
        return new MenuResult<>(Type.SUCCESS, new ArrayList<>(values));
    }
    /**
@@ -208,7 +206,7 @@
     * @see #isSuccess()
     */
    public Collection<T> getValues() {
        return new ArrayList<T>(values);
        return new ArrayList<>(values);
    }
    /**