From b8c6b80da1cb6118167a934daa480eb381c59e0e Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 08 Jul 2015 08:06:00 +0000
Subject: [PATCH] opendj-server-legacy maven module: Enabled "NeedBraces" checkstyle rule. This brings opendj-server-legacy's checkstyle rules closer to ForgeRock's checkstyle rules.

---
 opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/TargetAttr.java |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/TargetAttr.java b/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/TargetAttr.java
index 444bb23..b77f18f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/TargetAttr.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/TargetAttr.java
@@ -113,7 +113,9 @@
             String attribute = attr.toLowerCase();
             if(attribute.equals("*")) {
                 if(!allUserAttributes)
-                    allUserAttributes=true;
+                {
+                  allUserAttributes=true;
+                }
                 else {
                     LocalizableMessage message =
                         WARN_ACI_TARGETATTR_INVALID_ATTR_TOKEN.get(attrStr);
@@ -121,7 +123,9 @@
                 }
             } else if(attribute.equals("+")) {
                 if(!allOpAttributes)
-                    allOpAttributes=true;
+                {
+                  allOpAttributes=true;
+                }
                 else {
                     LocalizableMessage message =
                         WARN_ACI_TARGETATTR_INVALID_ATTR_TOKEN.get(attrStr);
@@ -133,9 +137,13 @@
                     attrType = DirectoryServer.getDefaultAttributeType(attribute);
                 }
                 if(attrType.isOperational())
-                    opAttributes.add(attrType);
+                {
+                  opAttributes.add(attrType);
+                }
                 else
-                    attributes.add(attrType);
+                {
+                  attributes.add(attrType);
+                }
             }
         }
     }

--
Gitblit v1.10.0