From 0d0f11e1c040e8420f16b85d76a30fb0418f02cd Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 08 Aug 2016 08:07:40 +0000
Subject: [PATCH] Replace Utils.getHostNameForLdapUrl() with HostPort

---
 opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java b/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
index 1e1db17..a4d48f0 100644
--- a/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
+++ b/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
@@ -549,10 +549,15 @@
     /**
      * Returns the string that can be used to represent a given host name in a LDAP URL.
      * This method must be used when we have IPv6 addresses (the address in the LDAP URL
-     *  must be enclosed with brackets).
-     *  E.g:<pre>
+     * must be enclosed with brackets).
+     * <p>
+     * E.g:
+     *
+     * <pre>
      *  -h "[2a01:e35:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]"
-     *  </pre>
+     * </pre>
+     *
+     * Note: it would be nice to replace this method by {@code HostPort}
      *
      * @param host
      *            The host name.

--
Gitblit v1.10.0