IDEA inspection refactorings.

This commit is contained in:
Luke Taylor
2010-08-05 22:47:42 +01:00
parent a3d27a9863
commit 85c4c91e0e
175 changed files with 428 additions and 551 deletions

View File

@@ -98,7 +98,7 @@ public class AccessControlListTag extends TagSupport {
List<Permission> requiredPermissions = parsePermissionsString(evaledPermissionsString);
Object resolvedDomainObject = null;
Object resolvedDomainObject;
if (domainObject instanceof String) {
resolvedDomainObject = ExpressionEvaluationUtils.evaluate("domainObject", (String) domainObject,

View File

@@ -77,7 +77,7 @@ public class AuthzImpl implements Authz {
private boolean ifGranted(String roles, int grantType) {
LegacyAuthorizeTag authorizeTag = new LegacyAuthorizeTag();
int result = -1;
int result;
try {
switch (grantType) {
@@ -105,11 +105,7 @@ public class AuthzImpl implements Authz {
throw new IllegalArgumentException(je.getMessage());
}
if (Tag.EVAL_BODY_INCLUDE == result) {
return true;
} else {
return false;
}
return Tag.EVAL_BODY_INCLUDE == result;
}
public boolean noneGranted(String roles) {