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/main/java/org/opends/server/protocols/ldap/LDAPConnectionHandler.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPConnectionHandler.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
index 3c64ba8..205dd87 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
@@ -771,7 +771,7 @@
{
LDAPConnectionHandlerCfg config = (LDAPConnectionHandlerCfg) configuration;
- if ((currentConfig == null)
+ if (currentConfig == null
|| (!currentConfig.isEnabled() && config.isEnabled()))
{
// Attempt to bind to the listen port on all configured addresses to
@@ -982,7 +982,7 @@
// Enter a loop, waiting for new connections to arrive and
// then accepting them as they come in.
boolean lastIterationFailed = false;
- while (enabled && (!shutdownRequested))
+ while (enabled && !shutdownRequested)
{
try
{
@@ -1082,7 +1082,7 @@
}
}
- if (selectorState == 0 && enabled && (!shutdownRequested)
+ if (selectorState == 0 && enabled && !shutdownRequested
&& logger.isTraceEnabled())
{
// Selected keys was non empty but select() returned 0.
@@ -1163,7 +1163,7 @@
InetAddress clientAddr = clientConnection.getRemoteAddress();
// Check to see if the client is on the denied list.
// If so, then reject it immediately.
- if ((!deniedClients.isEmpty())
+ if (!deniedClients.isEmpty()
&& AddressMask.matchesAny(deniedClients, clientAddr))
{
clientConnection.disconnect(DisconnectReason.CONNECTION_REJECTED,
@@ -1175,8 +1175,8 @@
// Check to see if there is an allowed list and if
// there is whether the client is on that list. If
// not, then reject the connection.
- if ((!allowedClients.isEmpty())
- && (!AddressMask.matchesAny(allowedClients, clientAddr)))
+ if (!allowedClients.isEmpty()
+ && !AddressMask.matchesAny(allowedClients, clientAddr))
{
clientConnection.disconnect(DisconnectReason.CONNECTION_REJECTED,
currentConfig.isSendRejectionNotice(),
--
Gitblit v1.10.0