Skip to content

Commit

Permalink
ELY-2628 : Move the method LongNameSetPermissionCollection#permission…
Browse files Browse the repository at this point in the history
…For to the inner class Iter

ELY-2628 : Move the method LongNameSetPermissionCollection#permissionFor to the inner class Iter

ELY-2628 : Move the method LongNameSetPermissionCollection#permissionFor to the inner class Iter
  • Loading branch information
Nidhi committed Sep 22, 2023
1 parent a7a0b99 commit 3fb2456
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 3fb2456

Please sign in to comment.