From 2cc0baf3e716683c5fb8bc67cee764c46c5eb97d Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 04 Oct 2013 07:55:49 +0000
Subject: [PATCH] Follow up on r9644: OPENDJ-176 - Use SLF4J for logging in the SDK

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java
index 6d2776b..6ef2481 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/HeartBeatConnectionFactory.java
@@ -987,10 +987,10 @@
      */
     private static final class Sync extends AbstractQueuedSynchronizer {
         private static final int LOCKED_EXCLUSIVELY = -1;
-        // Keep compiler quiet.
+        /** Keep compiler quiet. */
         private static final long serialVersionUID = -3590428415442668336L;
 
-        /* Lock states. Positive values indicate that the shared lock is taken. */
+        /** Lock states. Positive values indicate that the shared lock is taken. */
         private static final int UNLOCKED = 0; // initial state
 
         @Override
@@ -1191,11 +1191,9 @@
         if (isClosed.compareAndSet(false, true)) {
             synchronized (validConnections) {
                 if (!validConnections.isEmpty()) {
-                    if (DEFAULT_LOG.isDebugEnabled()) {
-                        DEFAULT_LOG.debug(
-                                "HeartbeatConnectionFactory '{}' is closing while {} active connections remain",
-                                toString(), validConnections.size());
-                    }
+                    DEFAULT_LOG.debug(
+                            "HeartbeatConnectionFactory '{}' is closing while {} active connections remain",
+                            this, validConnections.size());
                 }
             }
             releaseScheduler();

--
Gitblit v1.10.0