]
Alessio Soldano updated JBWS-4031:
----------------------------------
Issue Type: Enhancement (was: Patch)
Avoid array allocation in SubjectCreatingPolicyInterceptor
----------------------------------------------------------
Key: JBWS-4031
URL:
https://issues.jboss.org/browse/JBWS-4031
Project: JBoss Web Services
Issue Type: Enhancement
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.