From dabe92ea0a072ec35b7ef8f46924c2ed1fd71195 Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Wed, 29 May 2024 19:33:06 +0400 Subject: [PATCH] fux some warnings --- .gitignore | 1 + SpringApp/library/build.gradle | 2 +- .../src/main/java/com/ip/library/core/jwt/JwtFilter.java | 7 ++++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 2c4a283..17ed185 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ SpringApp/data.mv.db +SpringApp/library/data.mv.db diff --git a/SpringApp/library/build.gradle b/SpringApp/library/build.gradle index df8ff22..8b9b426 100644 --- a/SpringApp/library/build.gradle +++ b/SpringApp/library/build.gradle @@ -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' } diff --git a/SpringApp/library/src/main/java/com/ip/library/core/jwt/JwtFilter.java b/SpringApp/library/src/main/java/com/ip/library/core/jwt/JwtFilter.java index 821c467..feea6f3 100644 --- a/SpringApp/library/src/main/java/com/ip/library/core/jwt/JwtFilter.java +++ b/SpringApp/library/src/main/java/com/ip/library/core/jwt/JwtFilter.java @@ -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);