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

Gaetan Boismal
03.27.2016 d7394bfd15ee7b9d27d189cf268b13f8913728b7
Minor fix for dsreplication cli

With dsreplication when both password and password file arguments were
provided on the command line, the associated conflict error message was
printed two times.
The fix removes the useless second check already performed by the call
to super.validateGlobalOptions(buf).
1 files modified
4 ■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java 4 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliArgumentParser.java
@@ -286,10 +286,8 @@
  {
    int returnValue;
    super.validateGlobalOptions(buf);
    final List<LocalizableMessage> errors = new ArrayList<>();
    addErrorMessageIfArgumentsConflict(
        errors, secureArgsList.getBindPasswordArg(), secureArgsList.getBindPasswordFileArg());
    final List<LocalizableMessage> errors = new ArrayList<>();
    // Check that we can write on the provided path where we write the
    // equivalent non-interactive commands.
    if (equivalentCommandFileArgument.isPresent())