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/tools/makeldif/TemplateFile.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/TemplateFile.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/TemplateFile.java
index cec1464..457528c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/TemplateFile.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/TemplateFile.java
@@ -563,7 +563,7 @@
   {
     templatePath = null;
     File f = getFile(filename);
-    if ((f == null) || (! f.exists()))
+    if (f == null || !f.exists())
     {
       LocalizableMessage message = ERR_MAKELDIF_COULD_NOT_FIND_TEMPLATE_FILE.get(filename);
       throw new IOException(message.toString());
@@ -650,7 +650,7 @@
                               templateFileConstants, warnings);
 
       String lowerLine = toLowerCase(line);
-      if ((line.length() == 0) || line.startsWith("#"))
+      if (line.length() == 0 || line.startsWith("#"))
       {
         // This is a comment or a blank line, so we'll ignore it.
         continue;
@@ -866,8 +866,8 @@
         StringBuilder lineBuffer = new StringBuilder(line);
         int openPos = line.lastIndexOf('[', closePos);
         // Find the opening bracket. If it's escaped, then it's not a constant
-        if ((openPos > 0 && line.charAt(openPos - 1) != '\\') ||
-            (openPos == 0))
+        if ((openPos > 0 && line.charAt(openPos - 1) != '\\')
+            || openPos == 0)
         {
           String constantName =
               toLowerCase(line.substring(openPos+1, closePos));
@@ -1273,7 +1273,7 @@
       }
     }
     //  Then, find the position of the first non-blank character in the line.
-    while ((pos < length) && (lowerLine.charAt(pos) == ' '))
+    while (pos < length && lowerLine.charAt(pos) == ' ')
     {
       pos++;
     }
@@ -1673,7 +1673,7 @@
     for (Branch b : branches.values())
     {
       TagResult result = b.writeEntries(entryWriter);
-      if (! (result.keepProcessingTemplateFile()))
+      if (!result.keepProcessingTemplateFile())
       {
         return result;
       }

--
Gitblit v1.10.0