mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
25.44.2016 d31131e834a2045f3c2c46099b9a9ed54c80184f
OPENDJ-2870 Fix compilation issue with usage of VisibleForTesting in Connections class

- remove the annotation because the cause of the issue was not found
1 files modified
5 ■■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/Connections.java 5 ●●●●● patch | view | raw | blame | history
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;