You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "A. J. David Bosschaert (Jira)" <ji...@apache.org> on 2020/06/02 17:30:00 UTC

[jira] [Created] (SLING-9496) Dead code in the API Regions runtime

A. J. David Bosschaert created SLING-9496:
---------------------------------------------

             Summary: Dead code in the API Regions runtime
                 Key: SLING-9496
                 URL: https://issues.apache.org/jira/browse/SLING-9496
             Project: Sling
          Issue Type: Bug
            Reporter: A. J. David Bosschaert
            Assignee: A. J. David Bosschaert


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)