Skip to content

Commit

Permalink
Merge pull request #1975 from nidhiazad/feature/ELY-2628_GHC_Nidhi_Azad
Browse files Browse the repository at this point in the history
ELY-2628 : Move the method LongNameSetPermissionCollection
  • Loading branch information
Skyllarr authored Sep 25, 2023
2 parents 7ca66a1 + 3fb2456 commit fcd07fc
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 LongNameSetPermissionCollection extends NameSetPermissionCollection
super(sourcePermission, nameEnumeration);
}

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

protected void doAdd(final AbstractPermission<?> permission) {
long setBits = getBitsForName(permission);
final AtomicLong 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 fcd07fc

Please sign in to comment.