mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
21.10.2015 b8f523c95f4fd5fc705f2c6c2a2d98217b9da450
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/task/DeleteEntryTask.java
@@ -175,10 +175,9 @@
      Set<String> backends =
        new TreeSet<String>(taskToBeLaunched.getBackends());
      backends.retainAll(getBackends());
      if (backends.size() > 0)
      if (!backends.isEmpty())
      {
        incompatibilityReasons.add(getIncompatibilityMessage(this,
            taskToBeLaunched));
        incompatibilityReasons.add(getIncompatibilityMessage(this, taskToBeLaunched));
        return false;
      }
    }
@@ -238,10 +237,9 @@
              node.getDN(), de);
        }
      }
      if (toNotify.size() > 0)
      if (!toNotify.isEmpty())
      {
        final List<BrowserNodeInfo> fToNotify =
          new ArrayList<BrowserNodeInfo>(toNotify);
        final List<BrowserNodeInfo> fToNotify = new ArrayList<>(toNotify);
        toNotify.clear();
        SwingUtilities.invokeLater(new Runnable()
        {
@@ -384,9 +382,9 @@
      {
        lastProgressTime = t;
        final Collection<BrowserNodeInfo> fToNotify;
        if (toNotify.size() > 0)
        if (!toNotify.isEmpty())
        {
          fToNotify = new ArrayList<BrowserNodeInfo>(toNotify);
          fToNotify = new ArrayList<>(toNotify);
          toNotify.clear();
        }
        else
@@ -467,9 +465,9 @@
      toNotify.add(controller.getNodeInfoFromPath(path));
    }
    final Collection<BrowserNodeInfo> fToNotify;
    if (toNotify.size() > 0)
    if (!toNotify.isEmpty())
    {
      fToNotify = new ArrayList<BrowserNodeInfo>(toNotify);
      fToNotify = new ArrayList<>(toNotify);
      toNotify.clear();
    }
    else