From 20d69e27342da3fda9259031ddff09311a19c35d Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Wed, 21 Dec 2005 00:39:36 +0000 Subject: [PATCH] Tidying up some Jalopy weirdness. --- .../org/acegisecurity/userdetails/User.java | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/core/src/main/java/org/acegisecurity/userdetails/User.java b/core/src/main/java/org/acegisecurity/userdetails/User.java index 25b436ed67..5f44bd0509 100644 --- a/core/src/main/java/org/acegisecurity/userdetails/User.java +++ b/core/src/main/java/org/acegisecurity/userdetails/User.java @@ -16,17 +16,19 @@ package org.acegisecurity.userdetails; import org.acegisecurity.GrantedAuthority; -import org.acegisecurity.providers.dao.DaoAuthenticationProvider; import org.springframework.util.Assert; /** * Models core user information retieved by an {@link UserDetailsService}. * - *

+ *

* Implemented with value object semantics (immutable after construction, like a * String). Developers may use this class directly, subclass it, * or write their own {@link UserDetails} implementation from scratch. *

+ * + * @author Ben Alex + * @version $Id$ */ public class User implements UserDetails { // ~ Instance fields @@ -226,17 +228,14 @@ public class User implements UserDetails { } protected void setAuthorities(GrantedAuthority[] authorities) { - Assert - .notNull(authorities, - "Cannot pass a null GrantedAuthority array"); + Assert.notNull(authorities, + "Cannot pass a null GrantedAuthority array"); for (int i = 0; i < authorities.length; i++) { - Assert - .notNull( - authorities[i], - "Granted authority element " - + i - + " is null - GrantedAuthority[] cannot contain any null elements"); + Assert.notNull( authorities[i], + "Granted authority element " + + i + + " is null - GrantedAuthority[] cannot contain any null elements"); } this.authorities = authorities; @@ -249,8 +248,7 @@ public class User implements UserDetails { sb.append("Password: [PROTECTED]; "); sb.append("Enabled: " + this.enabled + "; "); sb.append("AccountNonExpired: " + this.accountNonExpired + "; "); - sb - .append("credentialsNonExpired: " + this.credentialsNonExpired + sb.append("credentialsNonExpired: " + this.credentialsNonExpired + "; "); sb.append("AccountNonLocked: " + this.accountNonLocked + "; ");