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/ReplicationTestCase.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
index 7ec22c9..886da08 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
@@ -256,7 +256,9 @@
     checkConnection(30, broker, port);
 
     if (timeout != 0)
+    {
       broker.setSoTimeout(timeout);
+    }
   }
 
   /**
@@ -292,7 +294,9 @@
   protected void deleteEntry(DN dn) throws Exception
   {
     if (dn.parent().rdn().toString().equalsIgnoreCase("cn=domains"))
+    {
       deleteEntry(DN.valueOf("cn=external changelog," + dn));
+    }
 
     DeleteOperation op = connection.processDelete(dn);
     assertTrue(op.getResultCode() == SUCCESS || op.getResultCode() == NO_SUCH_OBJECT,
@@ -351,7 +355,9 @@
 
     // Check for unexpected replication config/objects left
     if (callParanoiaCheck)
+    {
       paranoiaCheck();
+    }
   }
 
   /**
@@ -513,7 +519,9 @@
     do
     {
       if (count++>0)
+      {
         Thread.sleep(100);
+      }
       op = connection.processSearch(newSearchRequest("cn=replication,cn=monitor", WHOLE_SUBTREE, monitorFilter));
     }
     while (op.getSearchEntries().isEmpty() && (count<100));
@@ -533,7 +541,9 @@
     boolean found = false;
     int count = timeout/100;
     if (count<1)
+    {
       count=1;
+    }
 
     do
     {
@@ -564,7 +574,9 @@
   {
     int count = timeout/200;
     if (count<1)
+    {
       count=1;
+    }
     Thread.sleep(50);
     boolean found = DirectoryServer.entryExists(dn);
     while ((count> 0) && (found != exist))

--
Gitblit v1.10.0