Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9496

Dead code in the API Regions runtime

    XMLWordPrintableJSON

    Details

      Description

      The ResolverHookImpl contains dead code here from the second 'if':

                  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);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davidb A. J. David Bosschaert
                Reporter:
                davidb A. J. David Bosschaert
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: