From c735f04439b44fe387db0a5d497100793d4613c6 Mon Sep 17 00:00:00 2001 From: Deepali Kasture Date: Fri, 22 Sep 2023 15:53:12 -0400 Subject: [PATCH] [ELY-2629] Move method permissionFor in IntNameSetPermissionCollection class --- .../permission/IntNameSetPermissionCollection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)); + } } }