From b8c6b80da1cb6118167a934daa480eb381c59e0e Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 08 Jul 2015 08:06:00 +0000
Subject: [PATCH] opendj-server-legacy maven module: Enabled "NeedBraces" checkstyle rule. This brings opendj-server-legacy's checkstyle rules closer to ForgeRock's checkstyle rules.

---
 opendj-server-legacy/src/test/java/org/opends/server/replication/service/ComputeBestServerTest.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/service/ComputeBestServerTest.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/service/ComputeBestServerTest.java
index ebed185..23806be 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/service/ComputeBestServerTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/service/ComputeBestServerTest.java
@@ -510,7 +510,9 @@
         new CSN(looser1T2, 0, myId2),
         new CSN(looser1T3, 0, myId3));
     if (looser1IsLocal)
+    {
       ReplicationServer.onlyForTestsAddlocalReplicationServer(LOOSER1);
+    }
 
     // State for server 2
     ServerState aState2 = newServerState(
@@ -518,7 +520,9 @@
         new CSN(winnerT2, 0, myId2),
         new CSN(winnerT3, 0, myId3));
     if (winnerIsLocal)
+    {
       ReplicationServer.onlyForTestsAddlocalReplicationServer(WINNER);
+    }
 
     // State for server 3
     ServerState aState3 = newServerState(
@@ -526,7 +530,9 @@
         new CSN(looser2T2, 0, myId2),
         new CSN(looser2T3, 0, myId3));
     if (looser2IsLocal)
+    {
       ReplicationServer.onlyForTestsAddlocalReplicationServer(LOOSER2);
+    }
 
     Map<Integer, ReplicationServerInfo> rsInfos = newRSInfos(
         newRSInfo(11, LOOSER1, aState1, 0, 1),
@@ -606,17 +612,23 @@
     // State for server 1
     ServerState aState1 = newServerState(new CSN(looser1T1, 0, myId1));
     if (looser1IsLocal)
+    {
       ReplicationServer.onlyForTestsAddlocalReplicationServer(LOOSER1);
+    }
 
     // State for server 2
     ServerState aState2 = newServerState(new CSN(winnerT1, 0, myId1));
     if (winnerIsLocal)
+    {
       ReplicationServer.onlyForTestsAddlocalReplicationServer(WINNER);
+    }
 
     // State for server 3
     ServerState aState3 = newServerState(new CSN(looser2T1, 0, myId1));
     if (looser2IsLocal)
+    {
       ReplicationServer.onlyForTestsAddlocalReplicationServer(LOOSER2);
+    }
 
     Map<Integer, ReplicationServerInfo> rsInfos = newRSInfos(
         newRSInfo(11, LOOSER1, aState1, looser1GenId, looser1GroupId),

--
Gitblit v1.10.0