AclService.
diff --git a/acl/src/main/java/org/springframework/security/acls/jdbc/JdbcMutableAclService.java b/acl/src/main/java/org/springframework/security/acls/jdbc/JdbcMutableAclService.java
index 09f4751fe9..af507746fb 100644
--- a/acl/src/main/java/org/springframework/security/acls/jdbc/JdbcMutableAclService.java
+++ b/acl/src/main/java/org/springframework/security/acls/jdbc/JdbcMutableAclService.java
@@ -82,8 +82,7 @@ public class JdbcMutableAclService extends JdbcAclService implements MutableAclS
//~ Methods ========================================================================================================
- public MutableAcl createAcl(ObjectIdentity objectIdentity)
- throws AlreadyExistsException {
+ public MutableAcl createAcl(ObjectIdentity objectIdentity) throws AlreadyExistsException {
Assert.notNull(objectIdentity, "Object Identity required");
// Check this object identity hasn't already been persisted
@@ -217,8 +216,7 @@ public class JdbcMutableAclService extends JdbcAclService implements MutableAclS
return null;
}
- public void deleteAcl(ObjectIdentity objectIdentity, boolean deleteChildren)
- throws ChildrenExistException {
+ public void deleteAcl(ObjectIdentity objectIdentity, boolean deleteChildren) throws ChildrenExistException {
Assert.notNull(objectIdentity, "Object Identity required");
Assert.notNull(objectIdentity.getIdentifier(), "Object Identity doesn't provide an identifier");
diff --git a/acl/src/main/resources/org/springframework/security/acls/jdbc/applicationContext-test.xml b/acl/src/main/resources/org/springframework/security/acls/jdbc/applicationContext-test.xml
index 95e26d1fe0..d069262bf7 100644
--- a/acl/src/main/resources/org/springframework/security/acls/jdbc/applicationContext-test.xml
+++ b/acl/src/main/resources/org/springframework/security/acls/jdbc/applicationContext-test.xml
@@ -10,60 +10,58 @@
-->
* Stores a String representation of an authority granted to the {@link Authentication} object.
*
- * If compared to a custom authority which returns null from {@link #getAuthority}, the compareTo
+ * If compared to a custom authority which returns null from {@link #getAuthority}, the compareTo
* method will return -1, so the custom authority will take precedence.
*
* @author Ben Alex
@@ -73,14 +73,14 @@ public class GrantedAuthorityImpl implements GrantedAuthority, Serializable {
return this.role;
}
- public int compareTo(Object o) {
- if (o != null && o instanceof GrantedAuthority) {
- String rhsRole = ((GrantedAuthority) o).getAuthority();
-
+ public int compareTo(GrantedAuthority ga) {
+ if (ga != null) {
+ String rhsRole = ga.getAuthority();
+
if (rhsRole == null) {
return -1;
}
-
+
return role.compareTo(rhsRole);
}
return -1;
diff --git a/core/src/main/java/org/springframework/security/vote/AffirmativeBased.java b/core/src/main/java/org/springframework/security/vote/AffirmativeBased.java
index e836e01f76..e6773ebd5c 100644
--- a/core/src/main/java/org/springframework/security/vote/AffirmativeBased.java
+++ b/core/src/main/java/org/springframework/security/vote/AffirmativeBased.java
@@ -15,13 +15,12 @@
package org.springframework.security.vote;
+import java.util.List;
+
import org.springframework.security.AccessDeniedException;
import org.springframework.security.Authentication;
import org.springframework.security.ConfigAttribute;
-import java.util.Iterator;
-import java.util.List;
-
/**
* Simple concrete implementation of {@link org.springframework.security.AccessDecisionManager} that grants access if any
@@ -44,11 +43,9 @@ public class AffirmativeBased extends AbstractAccessDecisionManager {
*/
public void decide(Authentication authentication, Object object, List This Acl voter will evaluate methods based on labels applied to incoming arguments. It will only check
@@ -57,7 +53,7 @@ public class LabelBasedAclVoter extends AbstractAclVoter {
//~ Instance fields ================================================================================================
- private Map labelMap = null;
+ private MapIS_AUTHENTICATED_FULLY or
diff --git a/core/src/main/java/org/springframework/security/vote/LabelBasedAclVoter.java b/core/src/main/java/org/springframework/security/vote/LabelBasedAclVoter.java
index ff57fa5111..da224dbc72 100644
--- a/core/src/main/java/org/springframework/security/vote/LabelBasedAclVoter.java
+++ b/core/src/main/java/org/springframework/security/vote/LabelBasedAclVoter.java
@@ -14,21 +14,17 @@
*/
package org.springframework.security.vote;
-import org.springframework.security.Authentication;
-import org.springframework.security.ConfigAttribute;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
import org.aopalliance.intercept.MethodInvocation;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-
+import org.springframework.security.Authentication;
+import org.springframework.security.ConfigAttribute;
import org.springframework.util.Assert;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Vector;
-import java.util.Map;
-
/**
*