From d31131e834a2045f3c2c46099b9a9ed54c80184f Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Tue, 25 Oct 2016 08:44:17 +0000
Subject: [PATCH] OPENDJ-2870 Fix compilation issue with usage of VisibleForTesting in Connections class

---
 opendj-core/src/main/java/org/forgerock/opendj/ldap/Connections.java |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/opendj-core/src/main/java/org/forgerock/opendj/ldap/Connections.java b/opendj-core/src/main/java/org/forgerock/opendj/ldap/Connections.java
index cadb312..0a49920 100644
--- a/opendj-core/src/main/java/org/forgerock/opendj/ldap/Connections.java
+++ b/opendj-core/src/main/java/org/forgerock/opendj/ldap/Connections.java
@@ -48,7 +48,6 @@
 import org.forgerock.util.Option;
 import org.forgerock.util.Options;
 import org.forgerock.util.Reject;
-import org.forgerock.util.annotations.VisibleForTesting;
 import org.forgerock.util.promise.NeverThrowsException;
 import org.forgerock.util.promise.Promise;
 import org.forgerock.util.time.Duration;
@@ -566,7 +565,6 @@
 
     }
 
-    @VisibleForTesting
     static Function<Request, RequestWithIndex, NeverThrowsException> newShardedRequestLoadBalancerNextFunction(
             final Collection<? extends ConnectionFactory> factories) {
         return new Function<Request, RequestWithIndex, NeverThrowsException>() {
@@ -684,7 +682,6 @@
 
     private static final DecodeOptions CONTROL_DECODE_OPTIONS = new DecodeOptions();
 
-    @VisibleForTesting
     static Function<Request, RequestWithIndex, NeverThrowsException> newLeastRequestsLoadBalancerNextFunction(
             final LeastRequestsDispatcher dispatcher) {
         return new Function<Request, RequestWithIndex, NeverThrowsException>() {
@@ -714,7 +711,6 @@
         };
     }
 
-    @VisibleForTesting
     static Function<Integer, Void, NeverThrowsException> newLeastRequestsLoadBalancerEndOfRequestFunction(
             final LeastRequestsDispatcher dispatcher) {
         return new Function<Integer, Void, NeverThrowsException>() {
@@ -742,7 +738,6 @@
      * dispatched to the less saturated index, i.e. which corresponds to the server that has the lowest number of active
      * requests.
      */
-    @VisibleForTesting
     static class LeastRequestsDispatcher {
         /** Counter for each server. */
         private final AtomicLongArray serversCounters;

--
Gitblit v1.10.0