From 633684322f388e2a82cca4f1f2ead3f515b695f4 Mon Sep 17 00:00:00 2001
From: Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Date: Tue, 23 Jun 2015 14:21:41 +0000
Subject: [PATCH] OPENDJ-2148 CR-7317 "NullPointerException" when running import-ldif online with exclude branch

---
 opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java b/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
index 168fecf..159926e 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
@@ -975,22 +975,6 @@
   }
 
   /**
-   * Returns if <tt>exclude</tt> contains at least a DN or <tt>include</tt> contains anything else than one of
-   * <tt>baseDNs</tt>.
-   *
-   * @param baseDNs the baseDNs of a backend
-   * @param includeBranches a set of include DNs
-   * @param excludeBranches a set of exclude DNs
-   * @return true if <tt>exclude</tt> contains at least a DN or <tt>include</tt> contains anything else than one of
-   *         <tt>baseDNs</tt>
-   */
-  public static boolean importIncludesOrExcludesBranches(Collection<DN> baseDNs, Collection<DN> includeBranches,
-      Collection<DN> excludeBranches)
-  {
-    return !excludeBranches.isEmpty() || includeBranches.size() != 1 || !baseDNs.containsAll(includeBranches);
-  }
-
-  /**
    * Indicates whether a backend should be used to handle operations
    * for the provided entry given the set of base DNs and exclude DNs.
    *

--
Gitblit v1.10.0