Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14863

Undertow o.w.e.undertow.security.AccountImpl setRoles param self-assign

    XMLWordPrintable

    Details

      Description

      The method "setRoles" calls on a parameter instead of the self-named instance variable.
      https://github.com/wildfly/wildfly/blob/24.0.0.Beta1/undertow/src/main/java/org/wildfly/extension/undertow/security/AccountImpl.java#L80

      void setRoles(final Set<String> roles) {
              this.roles.clear();
              roles.addAll(roles);
          }
      

      must be

      void setRoles(final Set<String> roles) {
              this.roles.clear();
              this.roles.addAll(roles);
          }
      

        Attachments

          Activity

            People

            Assignee:
            xf01213 Boris Unckel
            Reporter:
            xf01213 Boris Unckel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: