Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-1660

Useless code in ResourceAuthorizationProvider

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.0
    • Fix Version/s: None
    • Component/s: Sentry
    • Labels:

      Description

      The ResourceAuthorizationProvider class has the following code:

          Set<String> hierarchy = new HashSet<String>();
          for (Authorizable authorizable : authorizables) {
            hierarchy.add(KV_JOINER.join(authorizable.getTypeName(), authorizable.getName()));
          }
      

      The hierarchy variable is never used afterwords, so this code is completely useless.

        Attachments

        1. SENTRY-1660.001.patch
          2 kB
          Jan Hentschel

          Issue Links

            Activity

              People

              • Assignee:
                janh Jan Hentschel
                Reporter:
                akolb Alex Kolbasov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: