1
0
mirror of synced 2026-08-05 01:36:56 +00:00

Enable Null checking in spring-security-cas via JSpecify

Closes gh-16882
This commit is contained in:
Rob Winch
2025-08-30 11:22:30 -05:00
parent be64c67af5
commit a4a4908d71
18 changed files with 112 additions and 25 deletions
@@ -18,6 +18,8 @@ package org.springframework.security.authentication;
import java.io.Serial;
import org.jspecify.annotations.Nullable;
import org.springframework.security.core.AuthenticationException;
/**
@@ -35,7 +37,7 @@ public class BadCredentialsException extends AuthenticationException {
* Constructs a <code>BadCredentialsException</code> with the specified message.
* @param msg the detail message
*/
public BadCredentialsException(String msg) {
public BadCredentialsException(@Nullable String msg) {
super(msg);
}
@@ -45,7 +47,7 @@ public class BadCredentialsException extends AuthenticationException {
* @param msg the detail message
* @param cause root cause
*/
public BadCredentialsException(String msg, Throwable cause) {
public BadCredentialsException(@Nullable String msg, Throwable cause) {
super(msg, cause);
}
@@ -50,7 +50,7 @@ public abstract class AuthenticationException extends RuntimeException {
* root cause.
* @param msg the detail message
*/
public AuthenticationException(String msg) {
public AuthenticationException(@Nullable String msg) {
super(msg);
}