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

Avoid array allocation in SubjectCreatingPolicyInterceptor

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: