From 3fb24563a95a9a4aac554d3524f07e392db298ea Mon Sep 17 00:00:00 2001 From: Nidhi Date: Fri, 22 Sep 2023 15:48:49 -0700 Subject: [PATCH] ELY-2628 : Move the method LongNameSetPermissionCollection#permissionFor 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 --- .../permission/LongNameSetPermissionCollection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/permission/src/main/java/org/wildfly/security/permission/LongNameSetPermissionCollection.java b/permission/src/main/java/org/wildfly/security/permission/LongNameSetPermissionCollection.java index 3ef54a65549..4ebc3469911 100644 --- a/permission/src/main/java/org/wildfly/security/permission/LongNameSetPermissionCollection.java +++ b/permission/src/main/java/org/wildfly/security/permission/LongNameSetPermissionCollection.java @@ -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; @@ -113,6 +109,10 @@ public boolean hasNext() { public Permission next() { return nextElement(); } + + private Permission permissionFor(int id) { + return ((AbstractNamedPermission)getSourcePermission()).withName(getNameEnumeration().nameOf(id)); + } } }