diff options
author | Vitaly Takmazov | 2023-01-20 18:23:00 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-20 18:23:00 +0300 |
commit | f987a11b78d7d8cf189fb73a10f99b44d84485de (patch) | |
tree | 3cf747f8dd6dc58eeef5ee312377c2bd201f1800 /src/main/java/com | |
parent | 3377dfe40abe7f614b26f5b235b0a11e991d6630 (diff) |
Minor cleanup
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/juick/www/SiteAttributesHandler.java | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/main/java/com/juick/www/SiteAttributesHandler.java b/src/main/java/com/juick/www/SiteAttributesHandler.java index 0e1ca1db..14da8994 100644 --- a/src/main/java/com/juick/www/SiteAttributesHandler.java +++ b/src/main/java/com/juick/www/SiteAttributesHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2020, Juick + * Copyright (C) 2008-2023, Juick * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,23 +17,12 @@ package com.juick.www; -import com.juick.model.AnonymousUser; -import com.juick.model.User; -import com.juick.service.UserService; -import com.juick.service.security.entities.JuickUser; -import org.springframework.security.core.Authentication; -import org.springframework.security.core.annotation.AuthenticationPrincipal; -import org.springframework.security.oauth2.jwt.Jwt; -import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken; +import jakarta.servlet.http.HttpServletResponse; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.servlet.support.ServletUriComponentsBuilder; -import jakarta.servlet.http.HttpServletResponse; - -import javax.inject.Inject; - @ControllerAdvice public class SiteAttributesHandler { @ModelAttribute |