commit | 7fb6d9b0d40e71419e6b8a34a8380578119168b6 | [log] [tgz] |
---|---|---|
author | Gert Vanthienen <gertv@apache.org> | Wed Dec 09 08:16:07 2009 +0000 |
committer | Gert Vanthienen <gertv@apache.org> | Wed Dec 09 08:16:07 2009 +0000 |
tree | 481e919865ded8655a9e154f4ed089aa9a377dd4 | |
parent | 5ec760ae7a0fb9a52308be6d85fde5b328e856df [diff] |
FELIX-1914: Making sure that bundles only appear once in every branch of the tree git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@888728 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/shell/dev/src/main/java/org/apache/felix/karaf/shell/dev/ShowBundleTree.java b/karaf/shell/dev/src/main/java/org/apache/felix/karaf/shell/dev/ShowBundleTree.java index 17d0382..aa5e210 100644 --- a/karaf/shell/dev/src/main/java/org/apache/felix/karaf/shell/dev/ShowBundleTree.java +++ b/karaf/shell/dev/src/main/java/org/apache/felix/karaf/shell/dev/ShowBundleTree.java
@@ -145,7 +145,8 @@ */ private void createNode(Node<Bundle> node, Set<Bundle> trail) { Bundle bundle = node.getValue(); - Collection<Bundle> exporters = getWiredBundles(bundle).values(); + Collection<Bundle> exporters = new HashSet<Bundle>(); + exporters.addAll(getWiredBundles(bundle).values()); for (Bundle exporter : exporters) { if (trail.contains(exporter)) {