From 15a0d1142e68d860e17f0b3dd130d5c44d4dd9f2 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Sat, 22 Sep 2012 12:21:06 +0000
Subject: [PATCH] Code cleanup after running Findbugs. Remove useless initializations, useless toString() on strings, and other redundant if tests...

---
 opends/src/server/org/opends/server/replication/server/MonitoringPublisher.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/MonitoringPublisher.java b/opends/src/server/org/opends/server/replication/server/MonitoringPublisher.java
index c669651..1d4c14f 100644
--- a/opends/src/server/org/opends/server/replication/server/MonitoringPublisher.java
+++ b/opends/src/server/org/opends/server/replication/server/MonitoringPublisher.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2009-2010 Sun Microsystems, Inc.
- *      Portions Copyright 2011 ForgeRock AS
+ *      Portions Copyright 2011-2012 ForgeRock AS
  */
 package org.opends.server.replication.server;
 
@@ -92,7 +92,7 @@
     if (debugEnabled())
     {
       TRACER.debugInfo("Monitoring publisher starting for dn "
-          + replicationServerDomain.getBaseDn().toString());
+          + replicationServerDomain.getBaseDn());
     }
 
     try
@@ -136,7 +136,7 @@
     catch (InterruptedException e)
     {
       TRACER.debugInfo("Monitoring publisher for dn "
-          + replicationServerDomain.getBaseDn().toString()
+          + replicationServerDomain.getBaseDn()
           + " in RS "
           + replicationServerDomain.getReplicationServer()
               .getServerId()
@@ -146,7 +146,7 @@
 
     done = true;
     TRACER.debugInfo("Monitoring publisher for dn "
-        + replicationServerDomain.getBaseDn().toString()
+        + replicationServerDomain.getBaseDn()
         + " is terminated."
         + " This is in RS "
         + replicationServerDomain.getReplicationServer()
@@ -168,7 +168,7 @@
       if (debugEnabled())
       {
         TRACER.debugInfo("Shutting down monitoring publisher for dn " +
-          replicationServerDomain.getBaseDn().toString() + " in RS " +
+          replicationServerDomain.getBaseDn() + " in RS " +
           replicationServerDomain.getReplicationServer().getServerId());
       }
     }
@@ -191,7 +191,7 @@
         if (n >= FACTOR)
         {
           TRACER.debugInfo("Interrupting monitoring publisher for dn " +
-            replicationServerDomain.getBaseDn().toString() + " in RS " +
+            replicationServerDomain.getBaseDn() + " in RS " +
             replicationServerDomain.getReplicationServer().getServerId());
           this.interrupt();
         }
@@ -211,7 +211,7 @@
     if (debugEnabled())
     {
       TRACER.debugInfo("Monitoring publisher for dn " +
-        replicationServerDomain.getBaseDn().toString() +
+        replicationServerDomain.getBaseDn() +
         " changing period value to " + period);
     }
 

--
Gitblit v1.10.0