Skip to content

Commit

Permalink
Fix spotbugs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbunkov committed Jun 20, 2023
1 parent bd2b8c5 commit 1018dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class UserSessionControllerManager {
// protected TokenStore tokenStore;

public void setSessionLocale(HttpServletRequest request) {
Locale locale = restLocaleUtils.extractLocaleFromRequestHeader(request);
// Locale locale = restLocaleUtils.extractLocaleFromRequestHeader(request);

//todo MG fix REST API UserSessionControllerManager
// if (locale != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ protected Collection<? extends GrantedAuthority> createAuthorities(String userna
.collect(Collectors.toList());
}

@Nullable
protected GrantedAuthority createAuthority(RoleAssignment roleAssignment) {
GrantedAuthority authority = null;
if (RoleAssignmentRoleType.RESOURCE.equals(roleAssignment.getRoleType())) {
Expand Down

0 comments on commit 1018dbb

Please sign in to comment.