From a41662c1136b2bb4a4198df89e0e87d2be3ef099 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 16 Jul 2015 14:57:56 +0000
Subject: [PATCH] AutoRefactor'ed simplify expressions
---
opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 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 a8fe6a4..7ddabbc 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
@@ -524,7 +524,7 @@
}
op = connection.processSearch(newSearchRequest("cn=replication,cn=monitor", WHOLE_SUBTREE, monitorFilter));
}
- while (op.getSearchEntries().isEmpty() && (count<100));
+ while (op.getSearchEntries().isEmpty() && count<100);
assertFalse(op.getSearchEntries().isEmpty(), "Could not read monitoring information");
SearchResultEntry entry = op.getSearchEntries().getFirst();
@@ -551,7 +551,7 @@
if (newEntry != null)
{
List<Attribute> tmpAttrList = newEntry.getAttribute(attrTypeStr);
- if ((tmpAttrList != null) && (!tmpAttrList.isEmpty()))
+ if (tmpAttrList != null && !tmpAttrList.isEmpty())
{
Attribute tmpAttr = tmpAttrList.get(0);
found = tmpAttr.contains(ByteString.valueOf(valueString));
@@ -562,7 +562,7 @@
{
Thread.sleep(100);
}
- } while ((--count > 0) && (found != hasAttribute));
+ } while (--count > 0 && found != hasAttribute);
return found;
}
@@ -579,7 +579,7 @@
}
Thread.sleep(50);
boolean found = DirectoryServer.entryExists(dn);
- while ((count> 0) && (found != exist))
+ while (count> 0 && found != exist)
{
Thread.sleep(200);
@@ -612,7 +612,7 @@
protected long getMonitorDelta() throws Exception
{
long currentCount = getMonitorAttrValue(monitorDN, monitorAttr);
- long delta = (currentCount - lastCount);
+ long delta = currentCount - lastCount;
lastCount = currentCount;
return delta;
}
@@ -757,7 +757,7 @@
while (taskState != expectedTaskState
&& taskState != TaskState.STOPPED_BY_ERROR
&& taskState != TaskState.COMPLETED_SUCCESSFULLY
- && (System.currentTimeMillis() - startTime < maxWaitTimeInMillis));
+ && System.currentTimeMillis() - startTime < maxWaitTimeInMillis);
// Check that the task contains some log messages.
Set<String> logMessages = resultEntry.parseAttribute(
@@ -917,7 +917,7 @@
}
logger.trace("waitForSpecificMsg received : " + replMsg);
msgs.add(replMsg);
- timedOut = (System.currentTimeMillis() - startTime) > timeOut;
+ timedOut = System.currentTimeMillis() - startTime > timeOut;
}
// Timeout
fail("Failed to receive an expected " + msgType + " message after 5 seconds."
--
Gitblit v1.10.0