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/quicksetup/Configuration.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/quicksetup/Configuration.java b/opendj-server-legacy/src/main/java/org/opends/quicksetup/Configuration.java
index 428b0ae..bbf3e0f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/quicksetup/Configuration.java
+++ b/opendj-server-legacy/src/main/java/org/opends/quicksetup/Configuration.java
@@ -350,16 +350,16 @@
     while (index1 != -1) {
       int index2 = lowerCaseContents.indexOf(Constants.LINE_SEPARATOR, index1);
       String value;
-      if (index2 > (index1 + attrName.length())) {
+      if (index2 > index1 + attrName.length()) {
         value = contents.substring(attrName.length() + index1, index2).trim();
-      } else if (lowerCaseContents.length() > (index1 + attrName.length())) {
+      } else if (lowerCaseContents.length() > index1 + attrName.length()) {
         // Assume end of file
         value = contents.substring(attrName.length() + index1).trim();
       } else {
         value = null;
       }
 
-      if ((value != null) && (value.length() > 0)) {
+      if (value != null && value.length() > 0) {
         set.add(value);
       }
 
@@ -368,5 +368,4 @@
     }
     return set;
   }
-
 }

--
Gitblit v1.10.0