Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-1659

HMSPathsDumper has useless code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • Sentry

    Description

      The HMSPathsDumper class has the following code:

            if (child.getAuthzObjs().size() != 0) {
              for (String authzObj: child.getAuthzObjs()) {
                Set<Entry> paths = authzObjToPath.get(authzObj);
                if (paths == null) {
                  paths = new HashSet<Entry>();
                }
                paths.add(child);
              }
            }
      

      Note that local var paths is created inside the loop and never used, so this piece of code is completely useless.

      Attachments

        Issue Links

          Activity

            People

              kkalyan Krishna Kalyan
              akolb Alex Kolbasov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: