mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 20:42:14 +00:00
Changed no-arg constructor to a form more suitable for unit testing.
This commit is contained in:
parent
cab961bfa6
commit
1573491fbe
@ -47,8 +47,8 @@ public class TestingAuthenticationToken extends AbstractAuthenticationToken {
|
||||
this.authorities = authorities;
|
||||
}
|
||||
|
||||
private TestingAuthenticationToken() {
|
||||
super();
|
||||
protected TestingAuthenticationToken() {
|
||||
throw new IllegalArgumentException("Cannot use default constructor");
|
||||
}
|
||||
|
||||
//~ Methods ================================================================
|
||||
|
@ -56,8 +56,8 @@ public class UsernamePasswordAuthenticationToken
|
||||
this.authorities = authorities;
|
||||
}
|
||||
|
||||
private UsernamePasswordAuthenticationToken() {
|
||||
super();
|
||||
protected UsernamePasswordAuthenticationToken() {
|
||||
throw new IllegalArgumentException("Cannot use default constructor");
|
||||
}
|
||||
|
||||
//~ Methods ================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user