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

Gaetan Boismal
09.32.2016 caa149ce8b3787e09dc01a1f9dad53ef6267927a
OPENDJSDK-42 Remove unused parameters

PR-45
Those parameters were copied from the server tools but are not used any
more since API changes.

* ldapmodify
* defaultAdd (-a, --defaultAdd) which is enabled by default in the sdk.
* ldapmodify and ldapsearch
* -i (--encoding {encoding}) which is actually completely ignored,
a user can provide it with any value he wants and this will have
no consequences at all.
2 files modified
17 ■■■■■ changed files
opendj-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/LDAPModify.java 11 ●●●●● patch | view | raw | blame | history
opendj-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/LDAPSearch.java 6 ●●●●● patch | view | raw | blame | history
opendj-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/LDAPModify.java
@@ -283,17 +283,6 @@
            argParser.addArgument(noPropertiesFileArgument);
            argParser.setNoPropertiesFileArgument(noPropertiesFileArgument);
            // TODO: Remove this due to new LDIF reader api?
            BooleanArgument.builder("defaultAdd")
                    .shortIdentifier('a')
                    .description(INFO_MODIFY_DESCRIPTION_DEFAULT_ADD.get())
                    .buildAndAddToParser(argParser);
            StringArgument.builder("encoding")
                    .shortIdentifier('i')
                    .description(INFO_DESCRIPTION_ENCODING.get())
                    .valuePlaceholder(INFO_ENCODING_PLACEHOLDER.get())
                    .buildAndAddToParser(argParser);
            filename =
                    StringArgument.builder(OPTION_LONG_FILENAME)
                            .shortIdentifier(OPTION_SHORT_FILENAME)
opendj-sdk/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/LDAPSearch.java
@@ -361,12 +361,6 @@
            version = ldapVersionArgument();
            argParser.addArgument(version);
            StringArgument.builder("encoding")
                    .shortIdentifier('i')
                    .description(INFO_DESCRIPTION_ENCODING.get())
                    .valuePlaceholder(INFO_ENCODING_PLACEHOLDER.get())
                    .buildAndAddToParser(argParser);
            dereferencePolicy =
                    MultiChoiceArgument.<DereferenceAliasesPolicy>builder("dereferencePolicy")
                            .shortIdentifier('a')