From 33d753bb027bbfefbef3e31b1a0bb9bf3eeba886 Mon Sep 17 00:00:00 2001 From: Brian Stansberry Date: Sat, 21 Dec 2024 19:19:21 -0500 Subject: [PATCH] [WFCORE-7113] Deprecate AdditionalModuleSpecification.getModuleIdentifier() --- .../deployment/module/AdditionalModuleSpecification.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/src/main/java/org/jboss/as/server/deployment/module/AdditionalModuleSpecification.java b/server/src/main/java/org/jboss/as/server/deployment/module/AdditionalModuleSpecification.java index ed9c0b9ebd8..f08aeaeb642 100644 --- a/server/src/main/java/org/jboss/as/server/deployment/module/AdditionalModuleSpecification.java +++ b/server/src/main/java/org/jboss/as/server/deployment/module/AdditionalModuleSpecification.java @@ -36,10 +36,16 @@ public AdditionalModuleSpecification(ModuleIdentifier moduleIdentifier, Collecti this.resourceRoots = new ArrayList(resourceRoots); } + /** @deprecated use {@link #getModuleName()} */ + @Deprecated(forRemoval = true) public ModuleIdentifier getModuleIdentifier() { return moduleIdentifier; } + public String getModuleName() { + return moduleIdentifier.toString(); + } + public void addResourceRoot(ResourceRoot resourceRoot) { this.resourceRoots.add(resourceRoot);