diff --git a/src/main/java/de/holarse/auth/api/ApiPrincipal.java b/src/main/java/de/holarse/auth/api/ApiPrincipal.java index 7234a213..1c616864 100644 --- a/src/main/java/de/holarse/auth/api/ApiPrincipal.java +++ b/src/main/java/de/holarse/auth/api/ApiPrincipal.java @@ -27,6 +27,8 @@ public ApiPrincipal(final ApiUser user) { this.user = user; } + + @Override public Collection getAuthorities() { Set roles = new HashSet<>(); diff --git a/src/main/java/de/holarse/auth/web/HolarsePrincipal.java b/src/main/java/de/holarse/auth/web/HolarsePrincipal.java index 4a4d287a..1710eac3 100644 --- a/src/main/java/de/holarse/auth/web/HolarsePrincipal.java +++ b/src/main/java/de/holarse/auth/web/HolarsePrincipal.java @@ -16,7 +16,7 @@ public class HolarsePrincipal implements UserDetails { private final User user; public HolarsePrincipal(final User user) { - this.user = user; + this.user = user; } @Override diff --git a/src/main/java/de/holarse/web/controller/WikiController.java b/src/main/java/de/holarse/web/controller/WikiController.java index da427a04..b1adc75b 100644 --- a/src/main/java/de/holarse/web/controller/WikiController.java +++ b/src/main/java/de/holarse/web/controller/WikiController.java @@ -37,8 +37,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Pageable; import org.springframework.data.web.PageableDefault; -import org.springframework.http.HttpStatus; -import org.springframework.http.HttpStatusCode; import org.springframework.jms.core.JmsTemplate; import org.springframework.stereotype.Controller; import org.springframework.transaction.annotation.Transactional; @@ -46,7 +44,6 @@ import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView;