Skip to content

Commit

Permalink
fix: sonarcloud code smell fixes
Browse files Browse the repository at this point in the history
Refs: XRDDEV-2565
  • Loading branch information
enelir committed Jan 19, 2024
1 parent 30022b4 commit e0e3ea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private SharedParameters.GlobalGroup toGlobalGroup(GlobalGroupType source) {
target.setDescription(source.getDescription());

if (source.getGroupMember() != null) {
target.setGroupMembers(source.getGroupMember().stream().map(clientConf -> (ClientId) clientConf).toList());
target.setGroupMembers(source.getGroupMember().stream().map(ClientId.class::cast).toList());
}
return target;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private SharedParameters.GlobalGroup toGlobalGroup(GlobalGroupType source) {
target.setDescription(source.getDescription());

if (source.getGroupMember() != null) {
target.setGroupMembers(source.getGroupMember().stream().map(clientConf -> (ClientId) clientConf).toList());
target.setGroupMembers(source.getGroupMember().stream().map(ClientId.class::cast).toList());
}
return target;
}
Expand Down

0 comments on commit e0e3ea8

Please sign in to comment.