Skip to content
Snippets Groups Projects

Everything is nonnull

68 files
+ 207
356
Compare changes
  • Side-by-side
  • Inline

Files

@@ -3,6 +3,8 @@ package nl.tudelft.ewi.auta.core.authentication;
@@ -3,6 +3,8 @@ package nl.tudelft.ewi.auta.core.authentication;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetails;
 
import javax.annotation.Nullable;
 
/**
/**
* An authentication token.
* An authentication token.
*/
*/
@@ -11,6 +13,7 @@ public class AuthenticationToken extends AbstractAuthenticationToken {
@@ -11,6 +13,7 @@ public class AuthenticationToken extends AbstractAuthenticationToken {
/**
/**
* The token.
* The token.
*/
*/
 
@Nullable
private String token;
private String token;
/**
/**
@@ -50,6 +53,7 @@ public class AuthenticationToken extends AbstractAuthenticationToken {
@@ -50,6 +53,7 @@ public class AuthenticationToken extends AbstractAuthenticationToken {
* @return the token
* @return the token
*/
*/
@Override
@Override
 
@Nullable
public Object getCredentials() {
public Object getCredentials() {
return this.token;
return this.token;
}
}
Loading