Skip to content

Commit b406362

Browse files
authored
Merge pull request wildfly#18574 from ropalka/WFLY-20169
[WFLY-20169] Use ModuleDependency.Builder instead of deprecated ModuleDependency ctor in IIOP
2 parents 4b6f9a2 + d31b616 commit b406362

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/deployment/IIOPDependencyProcessor.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentU
2828
final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);
2929

3030
final ModuleLoader moduleLoader = Module.getBootModuleLoader();
31-
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, CORBA_ID, false, false, false, false));
32-
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, JAVAX_RMI_API_ID, false, false, false, false));
31+
moduleSpecification.addSystemDependency(ModuleDependency.Builder.of(moduleLoader, CORBA_ID).build());
32+
moduleSpecification.addSystemDependency(ModuleDependency.Builder.of(moduleLoader, JAVAX_RMI_API_ID).build());
3333
//we need to add iiop, as the orb is initialized from the context class loader of the deployment
34-
moduleSpecification.addSystemDependency(new ModuleDependency(moduleLoader, IIOP_OPENJDK_ID, false, false, false, false));
34+
moduleSpecification.addSystemDependency(ModuleDependency.Builder.of(moduleLoader, IIOP_OPENJDK_ID).build());
3535
}
3636
}

0 commit comments

Comments
 (0)