diff --git a/permission/src/main/java/org/wildfly/security/permission/IntNameSetPermissionCollection.java b/permission/src/main/java/org/wildfly/security/permission/IntNameSetPermissionCollection.java index 81653a35ae2..1174e427149 100644 --- a/permission/src/main/java/org/wildfly/security/permission/IntNameSetPermissionCollection.java +++ b/permission/src/main/java/org/wildfly/security/permission/IntNameSetPermissionCollection.java @@ -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; @@ -113,6 +109,10 @@ public boolean hasNext() { public Permission next() { return nextElement(); } + + private Permission permissionFor(int id) { + return ((AbstractNamedPermission)getSourcePermission()).withName(getNameEnumeration().nameOf(id)); + } } }