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

Jean-Noel Rouvignac
28.53.2014 4e9fade8dae490c812438aeeb040209ab3937da4
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, October 28, 2014 14:53 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, October 28, 2014 14:53 +0100
commit4e9fade8dae490c812438aeeb040209ab3937da4
tree 25afa15314001280aed921c19f5dd7f42e96b90d tree | zip | gz
parent 8f9dcdecf7a0513387fd05ebdd5931e619224196 view | diff
Code cleanup

ReplicationCliMain.java:
Used static import for ADSContext.
Removed promptIfRequired(PreExternalInitializationUserData) and promptIfRequired(PostExternalInitializationUserData), and replaced them with promptIfRequiredForPreOrPost(MonoServerReplicationUserData).
Extracted initialize(ReplicationUserData) to factorize code.
Removed several initializeWithArgParser(*UserData) methods and replaced them with a initializeWithArgParser(MonoServerReplicationUserData).
Extracted methods toString(Throwable), newBooleanArgument(), findArg(), existsArg(), addArgument(), getBindPassword1Arg(), getBindPassword2Arg(), getBindPasswordFile1Arg(), getBindPasswordFile2Arg(), getBindDN1Arg(), getBindDN2Arg(), getAdminPasswordArg(), getAdminPasswordFileArg(), getHostArg().
1 files modified
832 ■■■■■ changed files
opendj3-server-dev/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java 832 ●●●●● diff | view | raw | blame | history