Generic cleanup of warnings, whitespace and style.

This commit is contained in:
Erik Broes
2011-12-25 16:02:30 +01:00
parent d9c22be882
commit dce83b6ce4
257 changed files with 1408 additions and 1152 deletions

View File

@@ -23,12 +23,12 @@ public class PermissibleBase implements Permissible {
this.opable = opable;
if (opable instanceof Permissible) {
this.parent = (Permissible)opable;
this.parent = (Permissible) opable;
}
recalculatePermissions();
}
public boolean isOp() {
if (opable == null) {
return false;
@@ -90,11 +90,8 @@ public class PermissibleBase implements Permissible {
if (isPermissionSet(name)) {
return permissions.get(name).getValue();
} else if (perm != null) {
return perm.getDefault().getValue(isOp());
} else {
return Permission.DEFAULT_PERMISSION.getValue(isOp());
}
return perm.getDefault().getValue(isOp());
}
public PermissionAttachment addAttachment(Plugin plugin, String name, boolean value) {