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

Jean-Noël Rouvignac
09.36.2016 54b243bf7bc89790641e7652518f5f9057134665
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, February 9, 2016 16:36 +0100
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Wednesday, February 10, 2016 08:50 +0100
commit54b243bf7bc89790641e7652518f5f9057134665
tree 9d5233d9b29c7217fc062d1e36cb96a9b45478da tree | zip | gz
parent 8de5b2eff206a39d408f149cecc29607ffa62846 view | diff
OPENDJ-2693 dsconfig error message is showing the wrong port

The ConnectionFactoryProvider is storing the port in two places: an IntegerArgument and an int field.
Remove the int field and only keep the IntegerArgument to be consistent with other arguments.

ConnectionFactoryProvider.java:
Removed port field.
In getPort(), conditionally read the port from standard input.
if running in interactive mode and the port argument was not provided before
In getConnectionFactory(), avoid repeting conditions.
1 files modified
44 ■■■■ changed files
opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/ConnectionFactoryProvider.java 44 ●●●● diff | view | raw | blame | history