修复warning
This commit is contained in:
parent
b36637c354
commit
9ed69dea26
@ -31,10 +31,7 @@ public class CaptchaUtil {
|
||||
public static boolean checkVerificationCode(String uuid, String codeAnswer, AdminRedisTemplate adminRedisTemplate){
|
||||
String verifyKey = AdminConstant.CAPTCHA_CODE_KEY + uuid;
|
||||
String answer = adminRedisTemplate.get(verifyKey);
|
||||
if (StrUtil.isNotEmpty(codeAnswer) && answer != null && answer.equals(codeAnswer)){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return StrUtil.isNotEmpty(codeAnswer) && answer != null && answer.equals(codeAnswer);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -30,7 +30,7 @@ import static org.springframework.http.HttpMethod.POST;
|
||||
|
||||
public class DecryptingOncePerRequestFilter extends OncePerRequestFilter {
|
||||
|
||||
private String aesKey;
|
||||
private final String aesKey;
|
||||
public DecryptingOncePerRequestFilter(String aesKey) {
|
||||
this.aesKey = aesKey;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import java.util.Enumeration;
|
||||
|
||||
public class TokenUpdatingHttpServletRequestWrapper extends HttpServletRequestWrapper {
|
||||
|
||||
private String newTokenValue;
|
||||
private final String newTokenValue;
|
||||
|
||||
public TokenUpdatingHttpServletRequestWrapper(HttpServletRequest request, String newTokenValue) {
|
||||
super(request);
|
||||
|
@ -12,7 +12,7 @@ import java.util.concurrent.Executor;
|
||||
@Slf4j
|
||||
public class MdcExecutor implements Executor {
|
||||
|
||||
private Executor executor;
|
||||
private final Executor executor;
|
||||
|
||||
public MdcExecutor(Executor executor) {
|
||||
this.executor = executor;
|
||||
|
@ -21,7 +21,7 @@ import java.util.List;
|
||||
@NoArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public class JsonUtils {
|
||||
|
||||
private static ObjectMapper OBJECT_MAPPER = SpringUtils.getBean(ObjectMapper.class);
|
||||
private static final ObjectMapper OBJECT_MAPPER = SpringUtils.getBean(ObjectMapper.class);
|
||||
|
||||
public static ObjectMapper getObjectMapper() {
|
||||
return OBJECT_MAPPER;
|
||||
|
Loading…
Reference in New Issue
Block a user