refactor: Fix some code smells #26

Merged
jank merged 6 commits from refactor/fix-smells into main 2024-10-02 07:48:33 +00:00
Showing only changes of commit e5d0bcb84e - Show all commits

refactor(welcome): remove generic type from getRoles method
Some checks failed
Quality Check / Tests (pull_request) Successful in 1m0s
Quality Check / Checkstyle Main (pull_request) Successful in 46s
gitea-sonarqube-bot ERROR
Build PR / Build and analyze (pull_request) Successful in 1m53s

Jan K9f 2024-10-02 09:39:42 +02:00
Signed by: jank
GPG key ID: B267751B8AE29EFE

View file

@ -19,7 +19,7 @@ public class WelcomeController {
}
@GetMapping("/roles")
public ResponseEntity<Collection<? extends GrantedAuthority>> getRoles(Authentication authentication) {
public ResponseEntity getRoles(Authentication authentication) {
return ResponseEntity.ok(authentication.getAuthorities());
}