Changed no-arg constructor to a form more suitable for unit testing.

This commit is contained in:
Ben Alex 2004-03-28 12:09:35 +00:00
parent cab961bfa6
commit 1573491fbe
2 changed files with 4 additions and 4 deletions

View File

@ -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 ================================================================

View File

@ -56,8 +56,8 @@ public class UsernamePasswordAuthenticationToken
this.authorities = authorities;
}
private UsernamePasswordAuthenticationToken() {
super();
protected UsernamePasswordAuthenticationToken() {
throw new IllegalArgumentException("Cannot use default constructor");
}
//~ Methods ================================================================