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/extensions/SASLContext.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/extensions/SASLContext.java b/opendj-server-legacy/src/main/java/org/opends/server/extensions/SASLContext.java
index 6440d55..aa1508c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/extensions/SASLContext.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/extensions/SASLContext.java
@@ -89,7 +89,7 @@
final String mechanism, final IdentityMapper<?> identityMapper)
throws SaslException
{
- return (new SASLContext(saslProps, serverFQDN, mechanism, identityMapper));
+ return new SASLContext(saslProps, serverFQDN, mechanism, identityMapper);
}
@@ -340,7 +340,7 @@
this.bindOp = bindOp;
final ByteString clientCredentials = bindOp.getSASLCredentials();
- if ((clientCredentials == null) || (clientCredentials.length() == 0))
+ if (clientCredentials == null || clientCredentials.length() == 0)
{
final LocalizableMessage msg = ERR_SASL_NO_CREDENTIALS.get(mechanism, mechanism);
handleError(msg);
@@ -799,8 +799,7 @@
}
}
- if ((authzEntry == null) || (!authzEntry.getName().
- equals(authEntry.getName())))
+ if (authzEntry == null || !authzEntry.getName().equals(authEntry.getName()))
{
// Create temporary authorization information and run it both
// through the privilege and then the access control subsystems.
@@ -1122,7 +1121,7 @@
final PasswordPolicyState pwPolicyState = (PasswordPolicyState) authState;
clearPasswords = pwPolicyState.getClearPasswords();
- if ((clearPasswords == null) || clearPasswords.isEmpty())
+ if (clearPasswords == null || clearPasswords.isEmpty())
{
setCallbackMsg(ERR_SASL_NO_REVERSIBLE_PASSWORDS.get(mechanism, authEntry.getName()));
return;
--
Gitblit v1.10.0