aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-04-01 18:59:09 +0200
committergjoranv <gv@verizonmedia.com>2020-04-01 18:59:09 +0200
commitdf05ca322bca04cc4c12b2e6bdaa252b10e50e7c (patch)
tree5ea2ca385be82f57f156e5f6841d173779eac446
parent83f42c8c3a106f0685deb175d57d4f725185df5d (diff)
Fix incorrect comment.
-rw-r--r--container-core/src/main/java/com/yahoo/container/core/config/BundleLoader.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/core/config/BundleLoader.java b/container-core/src/main/java/com/yahoo/container/core/config/BundleLoader.java
index 4c3d76436dd..38aacc2d2a5 100644
--- a/container-core/src/main/java/com/yahoo/container/core/config/BundleLoader.java
+++ b/container-core/src/main/java/com/yahoo/container/core/config/BundleLoader.java
@@ -148,10 +148,9 @@ public class BundleLoader {
/**
* Returns the bundles that are not assumed to be retained by the new application generation.
- * and cleans up the map of active file references. Note that at this point we don't yet know
- * the full set of new bundles, because of the potential pre-install directives in the new bundles.
- * However, only "disk bundles" (file:) can be listed in the pre-install directive, so we know
- * about all the obsolete application bundles.
+ * Note that at this point we don't yet know the full set of new bundles, because of the potential
+ * pre-install directives in the new bundles. However, only "disk bundles" (file:) can be listed
+ * in the pre-install directive, so we know about all the obsolete application bundles.
*/
private Set<Bundle> getObsoleteBundles(List<FileReference> newReferences) {
Set<Bundle> bundlesToRemove = new HashSet<>(osgi.getCurrentBundles());
@@ -165,6 +164,9 @@ public class BundleLoader {
return bundlesToRemove;
}
+ /**
+ * Cleans up the map of active file references
+ */
private void removeInactiveFileReferences(List<FileReference> newReferences) {
// Clean up the map of active bundles
Set<FileReference> fileReferencesToRemove = getObsoleteFileReferences(newReferences);