Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-4031

Avoid array allocation in SubjectCreatingPolicyInterceptor

    XMLWordPrintable

Details

    Description

      SubjectCreatingPolicyInterceptor#getPrincipal(Principal, Subject) converts a Set to an array just to get the first element. This is unnecessary and can easily be done with an Iterator which avoids the array creation.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              pmarscha Philippe Marschall (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: