sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A. J. David Bosschaert (Jira)" <j...@apache.org>
Subject [jira] [Updated] (SLING-9496) Dead code in the API Regions runtime
Date Tue, 02 Jun 2020 17:31:00 GMT

     [ https://issues.apache.org/jira/browse/SLING-9496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

A. J. David Bosschaert updated SLING-9496:
------------------------------------------
    Component/s: Feature Model

> Dead code in the API Regions runtime
> ------------------------------------
>
>                 Key: SLING-9496
>                 URL: https://issues.apache.org/jira/browse/SLING-9496
>             Project: Sling
>          Issue Type: Bug
>          Components: Feature Model
>            Reporter: A. J. David Bosschaert
>            Assignee: A. J. David Bosschaert
>            Priority: Major
>
> The ResolverHookImpl contains dead code here from the second 'if':
> {code}
>             Set<String> capFeatures = getFeaturesForBundle(capBundle);
>             if (capFeatures.isEmpty()) {
>                 // Capability is not in any feature, everyone can access
>                 coveredCaps.put(bc, RegionConstants.GLOBAL_REGION);
>                 continue nextCapability;
>             }
>             if (capFeatures.isEmpty())
>                 capFeatures = Collections.singleton(null);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message