Skip to content

Commit

Permalink
Merge pull request #1963 from deepalik-neu/move-permissionFor-method
Browse files Browse the repository at this point in the history
ELY-2629: Move method permissionFor in IntNameSetPermissionCollection class
  • Loading branch information
Skyllarr authored Sep 22, 2023
2 parents 1fd44c2 + c735f04 commit 7b6dbcd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ final class IntNameSetPermissionCollection extends NameSetPermissionCollection {
super(sourcePermission, nameEnumeration);
}

private Permission permissionFor(int id) {
return ((AbstractNamedPermission<?>)getSourcePermission()).withName(getNameEnumeration().nameOf(id));
}

protected void doAdd(final AbstractPermission<?> permission) {
int setBits= getBitsForName(permission);
final AtomicInteger bitSet = this.bitSet;
Expand Down Expand Up @@ -113,6 +109,10 @@ public boolean hasNext() {
public Permission next() {
return nextElement();
}

private Permission permissionFor(int id) {
return ((AbstractNamedPermission<?>)getSourcePermission()).withName(getNameEnumeration().nameOf(id));
}
}

}

0 comments on commit 7b6dbcd

Please sign in to comment.