From 609077ed606e3b094e303f298e8dca10567bc3e2 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 05 Aug 2016 18:42:07 +0000
Subject: [PATCH] Partial OPENDJ-2625 Convert all code that uses JNDI to use the SDK instead
---
opendj-server-legacy/src/main/java/org/opends/server/util/StaticUtils.java | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/util/StaticUtils.java b/opendj-server-legacy/src/main/java/org/opends/server/util/StaticUtils.java
index 03c835c..b0e0cc1 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/util/StaticUtils.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/util/StaticUtils.java
@@ -44,9 +44,6 @@
import java.util.Map;
import java.util.TimeZone;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.i18n.LocalizableMessageBuilder;
import org.forgerock.i18n.LocalizableMessageDescriptor;
@@ -2275,34 +2272,6 @@
}
/**
- * Closes the provided {@link InitialContext}'s ignoring any errors which occurred.
- *
- * @param ctxs
- * The contexts to be closed, which may be {@code null}.
- */
- public static void close(InitialContext... ctxs)
- {
- if (ctxs == null)
- {
- return;
- }
- for (InitialContext ctx : ctxs)
- {
- if (ctx != null)
- {
- try
- {
- ctx.close();
- }
- catch (NamingException ignored)
- {
- // ignore
- }
- }
- }
- }
-
- /**
* Calls {@link Thread#sleep(long)}, surrounding it with the mandatory
* {@code try} / {@code catch(InterruptedException)} block.
*
--
Gitblit v1.10.0