From b54d8bdf7b583b5d57b7deae2431c32fcd644a1a Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 25 Apr 2013 09:00:37 +0000
Subject: [PATCH] OPENDJ-879 (CR-1603) Add HTTP access log

---
 opends/src/server/org/opends/server/util/StaticUtils.java |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/StaticUtils.java b/opends/src/server/org/opends/server/util/StaticUtils.java
index 210a86e..1cb2556 100644
--- a/opends/src/server/org/opends/server/util/StaticUtils.java
+++ b/opends/src/server/org/opends/server/util/StaticUtils.java
@@ -51,6 +51,7 @@
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.Date;
 import java.util.Enumeration;
@@ -4622,6 +4623,25 @@
    */
   public static void close(Closeable... closeables)
   {
+    if (closeables == null)
+    {
+      return;
+    }
+    close(Arrays.asList(closeables));
+  }
+
+  /**
+   * Closes the provided {@link Closeable}'s ignoring any errors which occurred.
+   *
+   * @param closeables
+   *          The closeables to be closed, which may be <code>null</code>.
+   */
+  public static void close(Collection<Closeable> closeables)
+  {
+    if (closeables == null)
+    {
+      return;
+    }
     for (Closeable closeable : closeables)
     {
       if (closeable != null)

--
Gitblit v1.10.0