From b0a00d248d3f6ae91627490e7a177d9ad5184331 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 16 Feb 2015 15:59:49 +0000
Subject: [PATCH] AutoRefactor: booleans

---
 opendj-server-legacy/src/main/java/org/opends/server/util/VersionCompatibilityIssue.java |   27 ++++++---------------------
 1 files changed, 6 insertions(+), 21 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/util/VersionCompatibilityIssue.java b/opendj-server-legacy/src/main/java/org/opends/server/util/VersionCompatibilityIssue.java
index 0dae007..679837c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/util/VersionCompatibilityIssue.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/util/VersionCompatibilityIssue.java
@@ -552,31 +552,16 @@
             new ArrayList<VersionCompatibilityIssue>();
     for (VersionCompatibilityIssue evt : VERSION_COMPATIBILITY_ISSUES) {
       if (!excludeIds.contains(evt.getCause().getId())) {
-        boolean isUpgrade = neu.compareTo(current) >= 0;
         BuildVersion currentVersion = new BuildVersion(
             current.getMajorVersion(), current.getMinorVersion(),
             current.getPointVersion(), current.getRevisionNumber());
-        if (isUpgrade)
+        // If the currentVersion is newer than the issue described, then there
+        // is no problem.  This can occur for instance when we discovered a
+        // flag day too late (and we added the flag day description to the
+        // code way after the revision).
+        if (currentVersion.compareTo(evt.getVersion()) < 0)
         {
-          // If the currentVersion is newer than the issue described, then there
-          // is no problem.  This can occur for instance when we discovered a
-          // flag day too late (and we added the flag day description to the
-          // code way after the revision).
-          if (currentVersion.compareTo(evt.getVersion()) < 0)
-          {
-            issueList.add(evt);
-          }
-        }
-        else
-        {
-          // If the newVersion in the reversion is newer than the issue
-          // described, then there is no problem.  This can occur for instance
-          // when we discovered a flag day too late (and we added the flag day
-          // description to the code way after the revision).
-          if (currentVersion.compareTo(evt.getVersion()) < 0)
-          {
-            issueList.add(evt);
-          }
+          issueList.add(evt);
         }
       }
     }

--
Gitblit v1.10.0