From ddb249a9885e0348a05978f2d55be67cd8e6f57d Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Fri, 30 Aug 2013 10:02:05 +0000
Subject: [PATCH] More code cleanup and use of interfaces in dsreplication and ADS.

---
 opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java b/opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java
index e4baf62..5918e5c 100644
--- a/opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java
+++ b/opendj-sdk/opends/src/ads/org/opends/admin/ads/TopologyCacheException.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2008 Sun Microsystems, Inc.
+ *      Portions Copyright 2013 ForgeRock AS.
  */
 
 package org.opends.admin.ads;
@@ -149,8 +150,7 @@
   public String getHostPort()
   {
     int index = ldapUrl.indexOf("//");
-    String hostPort = ldapUrl.substring(index + 2);
-    return hostPort;
+    return ldapUrl.substring(index + 2);
   }
 
   /**

--
Gitblit v1.10.0