diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-11-24 16:45:57 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-11-24 16:45:57 +0000 |
commit | cd8ef9361bd103f380ec6d5fa11063a3ba7556e7 (patch) | |
tree | 0b8fb6765054eb337a3529d55c13a44c6565dada /EssentialsGroupManager/src/org/anjocaido/groupmanager | |
parent | eea381e7143aac4b2a0dd63878bce769078e3bed (diff) | |
download | Essentials-cd8ef9361bd103f380ec6d5fa11063a3ba7556e7.tar Essentials-cd8ef9361bd103f380ec6d5fa11063a3ba7556e7.tar.gz Essentials-cd8ef9361bd103f380ec6d5fa11063a3ba7556e7.tar.lz Essentials-cd8ef9361bd103f380ec6d5fa11063a3ba7556e7.tar.xz Essentials-cd8ef9361bd103f380ec6d5fa11063a3ba7556e7.zip |
minimal optimizations
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java index b20780a54..9387f13ac 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java @@ -967,15 +967,13 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface { public boolean comparePermissionString(String userAccessLevel, String fullPermissionName) { int userAccessLevelLength; if (userAccessLevel == null || fullPermissionName == null - || (userAccessLevelLength = userAccessLevel.length()) == 0 || fullPermissionName.length() == 0) { + || fullPermissionName.length() == 0 || (userAccessLevelLength = userAccessLevel.length()) == 0) { return false; } - int userAccessLevelOffset; + int userAccessLevelOffset = 0; if (userAccessLevel.charAt(0) == '+' || userAccessLevel.charAt(0) == '-') { userAccessLevelOffset = 1; - } else { - userAccessLevelOffset = 0; } if ("*".regionMatches(0, userAccessLevel, userAccessLevelOffset, userAccessLevelLength - userAccessLevelOffset)) { return true; |