From e0190b324fb92c3b82cd143d3aab1eeede951e94 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 16 Feb 2015 16:23:46 +0000
Subject: [PATCH] AutoRefactor: push negation down

---
 opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPPasswordModify.java |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPPasswordModify.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPPasswordModify.java
index f00a0f7..3e9515c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPPasswordModify.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPPasswordModify.java
@@ -503,7 +503,7 @@
     // were provided.
     if (bindDN.isPresent())
     {
-      if (! (bindPW.isPresent() || bindPWFile.isPresent()))
+      if (!bindPW.isPresent() && !bindPWFile.isPresent())
       {
         LocalizableMessage message = ERR_LDAPPWMOD_BIND_DN_AND_PW_MUST_BE_TOGETHER.get();
 
@@ -533,8 +533,7 @@
         return CLIENT_SIDE_PARAM_ERROR;
       }
 
-      if (! (authzID.isPresent() &&
-             (currentPW.isPresent() || currentPWFile.isPresent())))
+      if ((!authzID.isPresent() || (!currentPW.isPresent() && !currentPWFile.isPresent())))
       {
         LocalizableMessage message =
                 ERR_LDAPPWMOD_ANON_REQUIRES_AUTHZID_AND_CURRENTPW.get();

--
Gitblit v1.10.0