From ca669ae54f86dbeea277280690584d9f591c7571 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 18 Feb 2015 07:26:26 +0000
Subject: [PATCH] AutoRefactor: collapse if statements

---
 opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternIP.java |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternIP.java b/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternIP.java
index a9e437d..37420a4 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternIP.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternIP.java
@@ -22,7 +22,7 @@
  *
  *
  *      Copyright 2008 Sun Microsystems, Inc.
- *      Portions Copyright 2014 ForgeRock AS
+ *      Portions Copyright 2014-2015 ForgeRock AS
  */
 
 
@@ -440,11 +440,10 @@
         if(wildCardBitSet.cardinality() == IN4ADDRSZ)
             return true;
         for(int i=0;i <rulePrefixBytes.length; i++) {
-            if(!wildCardBitSet.get(i)) {
-                if((ruleAddrBytes[i] & rulePrefixBytes[i]) !=
-                        (addrBytes[i] & rulePrefixBytes[i]))
-                    return false;
-            }
+            if (!wildCardBitSet.get(i)
+                && (ruleAddrBytes[i] & rulePrefixBytes[i]) !=
+                    (addrBytes[i] & rulePrefixBytes[i]))
+              return false;
         }
         return true;
     }

--
Gitblit v1.10.0