From 83f5243abfde0b0ea726b46cdcb4f638c408d060 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Wed, 24 Aug 2011 13:56:29 +0000
Subject: [PATCH] Fix missing brackets in unit-test to avoid NPE (plus a few minor typos)
---
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java
index 47a3e66..d0755d5 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java
@@ -133,6 +133,7 @@
* If the environment could not be set up.
*/
@BeforeClass
+ @Override
public void setUp() throws Exception
{
super.setUp();
@@ -720,9 +721,11 @@
for (int i = 0; i< THREADS; i++)
{
if (reader[i] != null)
+ {
reader[i].join(10000);
- // kill the thread in case it is not yet stopped.
- reader[i].interrupt();
+ // kill the thread in case it is not yet stopped.
+ reader[i].interrupt();
+ }
}
debugInfo("multipleWriterMultipleReader reader's ended, now stop brokers");
for (int i = 0; i< THREADS; i++)
@@ -1077,6 +1080,7 @@
* @throws Exception If the environment could not be set up.
*/
@AfterClass
+ @Override
public void classCleanUp() throws Exception
{
callParanoiaCheck = false;
@@ -1450,7 +1454,7 @@
DeleteMsg delMsg = new DeleteMsg("o=example,"+suffix, cn, "uid");
l.add(delMsg);
}
- catch(Exception e) {};
+ catch(Exception ignored) {};
return l;
}
--
Gitblit v1.10.0