From 310df200f78f7d98cc52e4ab97d8a5feb744fa52 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 28 Apr 2016 09:04:35 +0000
Subject: [PATCH] UCDetector and AutoRefactor code cleanup

---
 opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/Branch.java |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/Branch.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/Branch.java
index 1333fcf..ed28d1c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/Branch.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/makeldif/Branch.java
@@ -26,10 +26,10 @@
 
 import org.forgerock.i18n.LocalizableMessage;
 import org.forgerock.opendj.ldap.ByteString;
+import org.forgerock.opendj.ldap.DN;
+import org.forgerock.opendj.ldap.schema.AttributeType;
 import org.opends.server.core.DirectoryServer;
 import org.opends.server.types.Attribute;
-import org.forgerock.opendj.ldap.schema.AttributeType;
-import org.forgerock.opendj.ldap.DN;
 import org.opends.server.types.Entry;
 
 /**
@@ -39,23 +39,18 @@
 public class Branch
 {
   /** The DN for this branch entry. */
-  private DN branchDN;
-
+  private final DN branchDN;
   /**
    * The number of entries that should be created below this branch for each
    * subordinate template.
    */
   private int[] numEntriesPerTemplate;
-
   /** The names of the subordinate templates for this branch. */
   private String[] subordinateTemplateNames;
-
   /** The set of subordinate templates for this branch. */
   private Template[] subordinateTemplates;
-
   /** The set of template lines that correspond to the RDN components. */
-  private TemplateLine[] rdnLines;
-
+  private final TemplateLine[] rdnLines;
   /** The set of extra lines that should be included in this branch entry. */
   private TemplateLine[] extraLines;
 
@@ -90,7 +85,7 @@
    * @param  extraLines                The set of extra lines that should be
    *                                   included in this branch entry.
    */
-  public Branch(TemplateFile templateFile, DN branchDN,
+  private Branch(TemplateFile templateFile, DN branchDN,
                 String[] subordinateTemplateNames, int[] numEntriesPerTemplate,
                 TemplateLine[] extraLines)
   {

--
Gitblit v1.10.0