brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geomacy <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request: Add a label to predicates check in f...
Date Thu, 24 Mar 2016 11:55:48 GMT
Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/78#discussion_r57306640
  
    --- Diff: core/src/main/java/org/apache/brooklyn/util/core/osgi/Osgis.java ---
    @@ -181,11 +181,11 @@ public BundleFinder requiringFromUrl(String url) {
             public List<Bundle> findAll() {
                 boolean urlMatched = false;
                 List<Bundle> result = MutableList.of();
    -            for (Bundle b: framework.getBundleContext().getBundles()) {
    +            allBundles: for (Bundle b: framework.getBundleContext().getBundles()) {
                     if (symbolicName!=null && !symbolicName.equals(b.getSymbolicName()))
continue;
                     if (version!=null && !Version.parseVersion(version).equals(b.getVersion()))
continue;
                     for (Predicate<? super Bundle> predicate: predicates) {
    -                    if (!predicate.apply(b)) continue;
    +                    if (!predicate.apply(b)) continue allBundles;
    --- End diff --
    
    sounds like a fix to me!  will add that soon.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message