fux some warnings

This commit is contained in:
Zakharov_Rostislav 2024-05-29 19:33:06 +04:00
parent fcab46dccc
commit dabe92ea0a
3 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
SpringApp/data.mv.db
SpringApp/library/data.mv.db

View File

@ -1,6 +1,6 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.4'
id 'org.springframework.boot' version '3.3.0'
id 'io.spring.dependency-management' version '1.1.4'
}

View File

@ -2,6 +2,7 @@ package com.ip.library.core.jwt;
import java.io.IOException;
import org.springframework.lang.NonNull;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
@ -36,9 +37,9 @@ public class JwtFilter extends OncePerRequestFilter {
@Override
protected void doFilterInternal(
HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain) throws ServletException, IOException {
@NonNull HttpServletRequest request,
@NonNull HttpServletResponse response,
@NonNull FilterChain filterChain) throws ServletException, IOException {
final String token = getTokenFromRequest(request);
if (!StringUtils.hasText(token)) {
filterChain.doFilter(request, response);