Skip to content

Commit

Permalink
Fix reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AfraHussaindeen committed Jan 17, 2025
1 parent deaf832 commit b1d3858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ public static User build(OMElement userOM) {
user.setUserStoreDomain(member.getText());
} else if ("UserName".equalsIgnoreCase(member.getLocalName())) {
user.setUserName(member.getText());
} else if ("UserId".equalsIgnoreCase(member.getLocalName())) {
if (StringUtils.isNotBlank(member.getText())) {
user.setUserId(member.getText());
}
} else if ("UserId".equalsIgnoreCase(member.getLocalName()) && StringUtils.isNotBlank(member.getText())) {
user.setUserId(member.getText());
}
}
return user;
Expand Down Expand Up @@ -223,11 +221,7 @@ public boolean equals(Object o) {
return false;
}

if (!Objects.equals(userId, user.userId)) {
return false;
}

return true;
return Objects.equals(userId, user.userId);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ public void setAuthenticatedSubjectIdentifier(String authenticatedSubjectIdentif
this.authenticatedSubjectIdentifier = authenticatedSubjectIdentifier;
}

@Override
public String getUserId() throws UserIdNotFoundException {

if (this.userId != null) {
Expand Down

0 comments on commit b1d3858

Please sign in to comment.