From 178aa1f037f838e069e288f06c99cf2dbe331478 Mon Sep 17 00:00:00 2001 From: Gabriel Padilha Santos Date: Mon, 23 Oct 2023 20:04:39 -0300 Subject: [PATCH] WFCORE-6445 Update ModuleSpecification.getMutableUserDependencies to resolve pending TODOs WFCORE-6445 Update ModuleSpecification.getMutableUserDependencies to resolve pending TODOs --- .../as/server/deployment/module/ModuleSpecification.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/src/main/java/org/jboss/as/server/deployment/module/ModuleSpecification.java b/server/src/main/java/org/jboss/as/server/deployment/module/ModuleSpecification.java index a62f108ed13..48eda430258 100644 --- a/server/src/main/java/org/jboss/as/server/deployment/module/ModuleSpecification.java +++ b/server/src/main/java/org/jboss/as/server/deployment/module/ModuleSpecification.java @@ -57,7 +57,6 @@ public class ModuleSpecification extends SimpleAttachable { private final List userDependencies = new ArrayList<>(); /** * Set view of user dependencies, used to prevent duplicates in the userDependencies list. - * TODO update getMutableUserDependencies and replace the list with this. */ private final Set userDependenciesSet = new HashSet<>(); @@ -235,11 +234,11 @@ public List getUserDependencies() { /** * Gets a modifiable view of the user dependencies list. * - * @return The user dependencies TODO change the return type to Collection and return a Set + * @return The user dependencies */ - public List getMutableUserDependencies() { + public Collection getMutableUserDependencies() { allDependencies = null; - return userDependencies; + return userDependenciesSet; } public void addResourceLoader(final ResourceLoaderSpec resourceLoader) {