Skip to content

Commit

Permalink
Remove redundant keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jul 9, 2024
1 parent 22f884b commit 9cc242e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/org/apache/commons/daemon/DaemonPermission.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public DaemonPermission(final String target, final String actions)

// Create the appropriate mask if this is a control permission.
if (this.type == TYPE_CONTROL) {
this.mask = this.createControlMask(actions);
this.mask = createControlMask(actions);
}
}

Expand All @@ -239,7 +239,7 @@ public DaemonPermission(final String target, final String actions)
public String getActions()
{
if (this.type == TYPE_CONTROL) {
return this.createControlActions(this.mask);
return createControlActions(this.mask);
}
return "";
}
Expand All @@ -252,7 +252,7 @@ public String getActions()
@Override
public int hashCode()
{
this.setupDescription();
setupDescription();
return this.desc.hashCode();
}

Expand Down Expand Up @@ -317,7 +317,7 @@ public boolean implies(final Permission permission)
@Override
public String toString()
{
this.setupDescription();
setupDescription();
return this.desc;
}

Expand Down Expand Up @@ -346,7 +346,7 @@ private void setupDescription()
break;
}
buf.append(':');
buf.append(this.getActions());
buf.append(getActions());
buf.append(']');

this.desc = buf.toString();
Expand Down

0 comments on commit 9cc242e

Please sign in to comment.