Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Simplify code using Java 8 features
[controller.git]
/
opendaylight
/
blueprint
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
blueprint
/
BlueprintBundleTracker.java
diff --git
a/opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/BlueprintBundleTracker.java
b/opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/BlueprintBundleTracker.java
index 4d7780147caab1dbdf68cf37131dbc9dbc7f2981..d3db3277425bcd0d5c22dca72352e9a055baa904 100644
(file)
--- a/
opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/BlueprintBundleTracker.java
+++ b/
opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/BlueprintBundleTracker.java
@@
-308,7
+308,7
@@
public class BlueprintBundleTracker implements BundleActivator, BundleTrackerCus
}
if (!bundlesToDestroy.isEmpty()) {
}
if (!bundlesToDestroy.isEmpty()) {
-
Collections.sort(bundlesToDestroy,
(b1, b2) -> (int) (b2.getLastModified() - b1.getLastModified()));
+
bundlesToDestroy.sort(
(b1, b2) -> (int) (b2.getLastModified() - b1.getLastModified()));
LOG.debug("Selected bundles {} for destroy (no services in use)", bundlesToDestroy);
} else {
LOG.debug("Selected bundles {} for destroy (no services in use)", bundlesToDestroy);
} else {