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

Jean-Noel Rouvignac
06.55.2015 af800b84600b5c9bd0000692a3df1fa071054660
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, July 6, 2015 17:55 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, July 6, 2015 17:55 +0200
commitaf800b84600b5c9bd0000692a3df1fa071054660
tree a3486ebbd813a725a3d2eb425ea54df4ddf25fca tree | zip | gz
parent 75ee22ead20ad8d1b059974b56f48351b4e7995a view | diff
Code cleanup

ReplicationCliMain.java:
In execute() and enableReplication(), used early exit.
In disableReplication(), reverted if statement + used early exit.
Extracted methods checksForNonInteractiveMode(), printSuccessfullyEnabled(), errPrintLn(), configureServer1() configureServer2(), isAnyReplicated().
In checkSuffixesForDisableReplication(), removed areSuffixRequired parameter, duplicate of displayErrors parameter.
In getMsg(), removed sProcessed and sUnprocessed which are string versions of processed and unprocessed longs.
Renamed getMessageForReplicationServerException() into errorConfiguringReplicationServer() and moved it.
Changed "col.size()>0" to "!col.isEmpty()"
Used diamond operator.
1 files modified
960 ■■■■ changed files
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java 960 ●●●● diff | view | raw | blame | history