[jbossws-commits] [jbossws/jbossws-cxf] 358f72: [JBWS-4031] Avoid array allocation in SubjectCreat...

GitHub noreply at github.com
Thu Nov 3 12:15:36 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/jbossws/jbossws-cxf
  Commit: 358f72e0fa0f6fdf8990210daf55fbb313c7a158
      https://github.com/jbossws/jbossws-cxf/commit/358f72e0fa0f6fdf8990210daf55fbb313c7a158
  Author: Philippe Marschall <philippe.marschall at gmail.com>
  Date:   2016-11-03 (Thu, 03 Nov 2016)

  Changed paths:
    M modules/server/src/main/java/org/jboss/wsf/stack/cxf/security/authentication/SubjectCreatingPolicyInterceptor.java

  Log Message:
  -----------
  [JBWS-4031] Avoid array allocation in SubjectCreatingPolicyInterceptor

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.




More information about the jbossws-commits mailing list