Skip to content

Commit

Permalink
[WFCORE-7074] Use fromString instead of create since moduleName in th…
Browse files Browse the repository at this point in the history
…eory could include a slot
  • Loading branch information
bstansberry committed Nov 27, 2024
1 parent 2bdbac3 commit fe9e489
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ModuleIdentifier addExternalModule(String moduleName, ServiceRegistry ser

@Override
public ModuleIdentifier addExternalModule(String moduleName, String path, ServiceRegistry serviceRegistry, ServiceTarget serviceTarget) {
ModuleIdentifier identifier = ModuleIdentifier.create(EXTERNAL_MODULE_PREFIX + moduleName);
ModuleIdentifier identifier = ModuleIdentifier.fromString(EXTERNAL_MODULE_PREFIX + moduleName);
ServiceName serviceName = ServiceModuleLoader.moduleSpecServiceName(identifier);
ServiceController<?> controller = serviceRegistry.getService(serviceName);
if (controller == null) {
Expand Down

0 comments on commit fe9e489

Please sign in to comment.