From e5d0bcb84e409ec306aaad37e25ef32f5f8f9fe5 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 2 Oct 2024 09:39:42 +0200 Subject: [PATCH] refactor(welcome): remove generic type from getRoles method --- .../java/de/szut/lf8_starter/welcome/WelcomeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/szut/lf8_starter/welcome/WelcomeController.java b/src/main/java/de/szut/lf8_starter/welcome/WelcomeController.java index a565f3f..0cfb9e5 100644 --- a/src/main/java/de/szut/lf8_starter/welcome/WelcomeController.java +++ b/src/main/java/de/szut/lf8_starter/welcome/WelcomeController.java @@ -19,7 +19,7 @@ public class WelcomeController { } @GetMapping("/roles") - public ResponseEntity> getRoles(Authentication authentication) { + public ResponseEntity getRoles(Authentication authentication) { return ResponseEntity.ok(authentication.getAuthorities()); }