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

Philippe Marschall (JIRA) issues at jboss.org
Fri Oct 14 09:02:00 EDT 2016


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

Philippe Marschall updated JBWS-4031:
-------------------------------------
    Git Pull Request: https://github.com/jbossws/jbossws-cxf/pull/8


> 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
>
> {{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
(v6.4.11#64026)


More information about the jbossws-issues mailing list