This is an automated email from the ASF dual-hosted git repository. davidb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-apiregions.git
The following commit(s) were added to refs/heads/master by this push: new 134f9d9 SLING-9496 Dead code in the API Regions runtime new b42db5e Merge pull request #10 from bosschaert/SLING-9496 134f9d9 is described below commit 134f9d941b6489cf1d8d9666d373acf273228b11 Author: David Bosschaert <bossc...@adobe.com> AuthorDate: Tue Jun 2 18:42:45 2020 +0100 SLING-9496 Dead code in the API Regions runtime --- .../apache/sling/feature/apiregions/impl/ResolverHookImpl.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/org/apache/sling/feature/apiregions/impl/ResolverHookImpl.java b/src/main/java/org/apache/sling/feature/apiregions/impl/ResolverHookImpl.java index 9dbeccf..af0374f 100644 --- a/src/main/java/org/apache/sling/feature/apiregions/impl/ResolverHookImpl.java +++ b/src/main/java/org/apache/sling/feature/apiregions/impl/ResolverHookImpl.java @@ -102,16 +102,7 @@ class ResolverHookImpl implements ResolverHook { continue nextCapability; } - if (capFeatures.isEmpty()) - capFeatures = Collections.singleton(null); - for (String capFeat : capFeatures) { - if (capFeat == null) { - // everyone can access capability not coming from a feature - coveredCaps.put(bc, RegionConstants.GLOBAL_REGION); - continue nextCapability; - } - if (reqFeatures.contains(capFeat)) { // Within a single feature everything can wire to everything else coveredCaps.put(bc, null); // null value means same bundle, same feature or system bundle