From 627a66edb6791bdab5d6e0ef0caf0f56b5b7a35e Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 11 Jan 2016 08:48:07 +0000
Subject: [PATCH] OPENDJ-2536 Add and use JCIP annotations jar

---
 opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java
index c4b00f6..8ab4bbc 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java
@@ -22,7 +22,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
- *      Portions Copyright 2011-2015 ForgeRock AS
+ *      Portions Copyright 2011-2016 ForgeRock AS
  */
 package org.opends.server.replication.service;
 
@@ -39,6 +39,9 @@
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicReference;
 
+import net.jcip.annotations.GuardedBy;
+import net.jcip.annotations.Immutable;
+
 import org.forgerock.i18n.LocalizableMessage;
 import org.forgerock.i18n.slf4j.LocalizedLogger;
 import org.forgerock.util.Utils;
@@ -65,7 +68,7 @@
    * Immutable class containing information about whether the broker is
    * connected to an RS and data associated to this connected RS.
    */
-  // @Immutable
+  @Immutable
   private static final class ConnectedRS
   {
 
@@ -205,7 +208,7 @@
    */
   /** Contains the last known state of the replication topology. */
   private final AtomicReference<Topology> topology = new AtomicReference<>(new Topology());
-  /** <pre>@GuardedBy("this")</pre>. */
+  @GuardedBy("this")
   private volatile int updateDoneCount;
   private volatile boolean connectRequiresRecovery;
 

--
Gitblit v1.10.0