[jbossws-issues] [JBoss JIRA] (JBWS-4031) Avoid array allocation in SubjectCreatingPolicyInterceptor

Alessio Soldano (JIRA) issues at jboss.org
Tue Nov 22 16:57:00 EST 2016


     [ https://issues.jboss.org/browse/JBWS-4031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessio Soldano updated JBWS-4031:
----------------------------------
    Fix Version/s: jbossws-cxf-5.1.6.Final
                       (was: jbossws-cxf-5.2.0.Final)


> Avoid array allocation in SubjectCreatingPolicyInterceptor
> ----------------------------------------------------------
>
>                 Key: JBWS-4031
>                 URL: https://issues.jboss.org/browse/JBWS-4031
>             Project: JBoss Web Services
>          Issue Type: Patch
>          Components: jbossws-cxf
>            Reporter: Philippe Marschall
>            Assignee: Alessio Soldano
>             Fix For: jbossws-cxf-5.1.6.Final
>
>
> {{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.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbossws-issues mailing list