mirror of
				https://github.com/spring-projects/spring-security.git
				synced 2025-10-31 06:38:42 +00:00 
			
		
		
		
	Changed no-arg constructor to a form more suitable for unit testing.
This commit is contained in:
		
							parent
							
								
									68ee9aaabb
								
							
						
					
					
						commit
						c5951ff1c0
					
				| @ -44,7 +44,7 @@ public class JettyAcegiUserToken extends AbstractAdapterAuthenticationToken | ||||
|     } | ||||
| 
 | ||||
|     protected JettyAcegiUserToken() { | ||||
|         super(); | ||||
|         throw new IllegalArgumentException("Cannot use default constructor"); | ||||
|     } | ||||
| 
 | ||||
|     //~ Methods ================================================================ | ||||
|  | ||||
| @ -38,8 +38,8 @@ public class GrantedAuthorityImpl implements GrantedAuthority { | ||||
|         this.role = role; | ||||
|     } | ||||
| 
 | ||||
|     private GrantedAuthorityImpl() { | ||||
|         super(); | ||||
|     protected GrantedAuthorityImpl() { | ||||
|         throw new IllegalArgumentException("Cannot use default constructor"); | ||||
|     } | ||||
| 
 | ||||
|     //~ Methods ================================================================ | ||||
|  | ||||
| @ -32,8 +32,8 @@ public class SecurityConfig implements ConfigAttribute { | ||||
|         this.attrib = config; | ||||
|     } | ||||
| 
 | ||||
|     private SecurityConfig() { | ||||
|         super(); | ||||
|     protected SecurityConfig() { | ||||
|         throw new IllegalArgumentException("Cannot use default constructor"); | ||||
|     } | ||||
| 
 | ||||
|     //~ Methods ================================================================ | ||||
|  | ||||
| @ -44,7 +44,7 @@ public class PrincipalAcegiUserToken extends AbstractAdapterAuthenticationToken | ||||
|     } | ||||
| 
 | ||||
|     protected PrincipalAcegiUserToken() { | ||||
|         super(); | ||||
|         throw new IllegalArgumentException("Cannot use default constructor"); | ||||
|     } | ||||
| 
 | ||||
|     //~ Methods ================================================================ | ||||
|  | ||||
| @ -47,8 +47,8 @@ public class RunAsUserToken extends AbstractAuthenticationToken { | ||||
|         this.originalAuthentication = originalAuthentication; | ||||
|     } | ||||
| 
 | ||||
|     private RunAsUserToken() { | ||||
|         super(); | ||||
|     protected RunAsUserToken() { | ||||
|         throw new IllegalArgumentException("Cannot use default constructor"); | ||||
|     } | ||||
| 
 | ||||
|     //~ Methods ================================================================ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user