From 24568b267fe8e4bb656994cc02291cc8248e067d Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Thu, 16 Apr 2015 15:10:06 +0000
Subject: [PATCH] OPENDJ-1714 Code cleanup
---
opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java b/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java
index 6c2be14..306525e 100644
--- a/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java
+++ b/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2008 Sun Microsystems, Inc.
- * Portions copyright 2014 ForgeRock AS.
+ * Portions copyright 2014-2015 ForgeRock AS.
*/
package org.forgerock.opendj.config.client.ldap;
@@ -85,14 +85,14 @@
* @param profile
* The LDAP profile
* @param exceptions
- * Contains {@code IOException} that may occurred during
- * management context close. Could be {@code null}
+ * Contains {@code IOException} that may occurred during management context close.
+ * Could be {@code null}
* @return A LDIF file management context
* @throws IOException
* If problems occurs while reading the file.
*/
- public static ManagementContext newLDIFManagementContext(
- final File ldifFile, final LDAPProfile profile, final List<IOException> exceptions) throws IOException {
+ public static ManagementContext newLDIFManagementContext(final File ldifFile, final LDAPProfile profile,
+ final List<IOException> exceptions) throws IOException {
final BufferedReader configReader = new BufferedReader(new FileReader(ldifFile));
try {
final MemoryBackend memoryBackend = new MemoryBackend(new LDIFEntryReader(configReader));
@@ -113,7 +113,7 @@
exceptions.add(e);
} else {
logger.error(LocalizableMessage.raw(
- "IOException occured during LDIF context management close:" + e));
+ "IOException occured during LDIF context management close:", e));
}
}
}
@@ -124,8 +124,7 @@
}
};
- // We need to add the root dse entry to make the configuration
- // framework work.
+ // We need to add the root dse entry to make the configuration framework work.
co.add(LDIFEntryReader.valueOfLDIFEntry("dn:", "objectClass:top", "objectClass:ds-root-dse"));
return LDAPManagementContext.newManagementContext(co, LDAPProfile.getInstance());
} finally {
@@ -144,8 +143,8 @@
* @throws IOException
* If problems occurs while reading the file.
*/
- public static ManagementContext newLDIFManagementContext(
- final File ldifFile, final LDAPProfile profile) throws IOException {
+ public static ManagementContext newLDIFManagementContext(final File ldifFile, final LDAPProfile profile)
+ throws IOException {
return newLDIFManagementContext(ldifFile, profile, null);
}
--
Gitblit v1.10.0