Skip to content
Browse files

[ignore] Some code cleanup

  • Loading branch information...
1 parent c141cb2 commit cb36b98dea0cd08961b8a29dd25cad800bf3a877 @adamretter adamretter committed
Showing with 21 additions and 21 deletions.
  1. +21 −21 src/org/exist/security/internal/aider/UnixStylePermissionAider.java
View
42 src/org/exist/security/internal/aider/UnixStylePermissionAider.java
@@ -55,7 +55,7 @@ public UnixStylePermissionAider() {
*
* @param mode The mode
*/
- public UnixStylePermissionAider(int mode) {
+ public UnixStylePermissionAider(final int mode) {
this();
this.mode = mode;
}
@@ -68,7 +68,7 @@ public UnixStylePermissionAider(int mode) {
* @param group
* @param mode
*/
- public UnixStylePermissionAider(String user, String group, int mode) {
+ public UnixStylePermissionAider(final String user, final String group, final int mode) {
this.owner = new UserAider(user);
this.ownerGroup = new GroupAider(group);
this.mode = mode;
@@ -90,7 +90,7 @@ public boolean isSticky() {
}
@Override
- public void setSetUid(boolean setUid) {
+ public void setSetUid(final boolean setUid) {
if(setUid) {
this.mode = mode | (SET_UID << 9);
} else {
@@ -99,7 +99,7 @@ public void setSetUid(boolean setUid) {
}
@Override
- public void setSetGid(boolean setGid) {
+ public void setSetGid(final boolean setGid) {
if(setGid) {
this.mode = mode | (SET_GID << 9);
} else {
@@ -108,7 +108,7 @@ public void setSetGid(boolean setGid) {
}
@Override
- public void setSticky(boolean sticky) {
+ public void setSticky(final boolean sticky) {
if(sticky) {
this.mode = mode | (STICKY << 9);
} else {
@@ -182,7 +182,7 @@ public int getOwnerMode() {
* @param group The group value
*/
@Override
- public void setGroup(Group group) {
+ public void setGroup(final Group group) {
this.ownerGroup = group;
}
@@ -192,7 +192,7 @@ public void setGroup(Group group) {
* @param group The group name
*/
@Override
- public void setGroup(String group) {
+ public void setGroup(final String group) {
this.ownerGroup = new GroupAider(group);
}
@@ -202,7 +202,7 @@ public void setGroup(String group) {
*@param groupMode The new group mode value
*/
@Override
- public void setGroupMode(int groupMode) {
+ public void setGroupMode(final int groupMode) {
this.mode |= (groupMode << 3);
}
@@ -212,7 +212,7 @@ public void setGroupMode(int groupMode) {
*@param user The new owner value
*/
@Override
- public void setOwner(Account user) {
+ public void setOwner(final Account user) {
this.owner = user;
}
@@ -222,7 +222,7 @@ public void setOwner(Account user) {
*@param user The new owner value
*/
@Override
- public void setOwner(String user) {
+ public void setOwner(final String user) {
this.owner = new UserAider(user);
}
@@ -232,7 +232,7 @@ public void setOwner(String user) {
*@param mode The new mode value
*/
@Override
- public void setMode(int mode) {
+ public void setMode(final int mode) {
this.mode = mode;
}
@@ -242,7 +242,7 @@ public void setMode(int mode) {
*@param otherMode The new public mode value
*/
@Override
- public void setOtherMode(int otherMode) {
+ public void setOtherMode(final int otherMode) {
this.mode |= otherMode ;
}
@@ -252,7 +252,7 @@ public void setOtherMode(int otherMode) {
*@param ownerMode The new owner mode value
*/
@Override
- public void setOwnerMode(int ownerMode) {
+ public void setOwnerMode(final int ownerMode) {
this.mode |= (ownerMode << 6);
}
@@ -281,7 +281,7 @@ public String toString() {
return String.valueOf(ch);
}
- public static UnixStylePermissionAider fromString(String modeStr) throws SyntaxException {
+ public static UnixStylePermissionAider fromString(final String modeStr) throws SyntaxException {
if(modeStr == null || !(modeStr.length() == 9 || modeStr.length() == 12)){
throw new SyntaxException("Invalid Permission String '" + modeStr + "'");
}
@@ -320,27 +320,27 @@ public static UnixStylePermissionAider fromString(String modeStr) throws SyntaxE
}
@Override
- public boolean validate(Subject user, int mode) {
- throw new UnsupportedOperationException("Validation of permission Aider is unsupported");
+ public boolean validate(final Subject user, final int mode) {
+ throw new UnsupportedOperationException("Validation of Permission Aider is unsupported");
}
@Override
- public void setGroup(int id) {
+ public void setGroup(final int id) {
ownerGroup = new GroupAider(id);
}
@Override
- public void setOwner(int id) {
+ public void setOwner(final int id) {
owner = new UserAider(id);
}
@Override
- public void write(VariableByteOutputStream ostream) {
+ public void write(final VariableByteOutputStream ostream) {
throw new UnsupportedOperationException("Serialization of permission Aider is unsupported");
}
@Override
- public void read(VariableByteInput istream) throws IOException {
+ public void read(final VariableByteInput istream) throws IOException {
throw new UnsupportedOperationException("De-Serialization of permission Aider is unsupported");
}
@@ -360,7 +360,7 @@ public boolean isCurrentSubjectInGroup() {
}
@Override
- public boolean isCurrentSubjectInGroup(int groupId) {
+ public boolean isCurrentSubjectInGroup(final int groupId) {
throw new UnsupportedOperationException("Not supported yet.");
}
}

0 comments on commit cb36b98

Please sign in to comment.
Something went wrong with that request. Please try again.