Skip to content

Commit

Permalink
KL-183/fix: fix checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhamma committed Oct 4, 2024
1 parent b5ca77e commit 99d9412
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package taco.klkl.global.config.security;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.web.authentication.logout.LogoutHandler;
import org.springframework.stereotype.Component;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import taco.klkl.domain.token.service.TokenService;

@Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package taco.klkl.global.config.security;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import java.io.IOException;

import org.springframework.http.HttpStatus;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import org.springframework.stereotype.Component;
import taco.klkl.global.util.TokenUtil;

import java.io.IOException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import taco.klkl.global.util.TokenUtil;

@Component
@RequiredArgsConstructor
Expand All @@ -27,4 +28,4 @@ public void onLogoutSuccess(
response.setStatus(HttpStatus.NO_CONTENT.value());
response.getWriter().flush();
}
}
}
8 changes: 4 additions & 4 deletions src/main/java/taco/klkl/global/util/TokenUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import static taco.klkl.global.common.constants.TokenConstants.ACCESS_TOKEN;

import jakarta.servlet.http.HttpServletRequest;
import java.util.Arrays;
import java.util.Optional;

import org.springframework.stereotype.Component;

import jakarta.servlet.http.Cookie;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.util.Arrays;
import java.util.Optional;

@Component
public class TokenUtil {

Expand Down

0 comments on commit 99d9412

Please sign in to comment.