Skip to content

Commit

Permalink
Merge pull request #6268 from yersan/WFCORE-7079
Browse files Browse the repository at this point in the history
[WFCORE-7079] Remove ModuleIdentifier usage from Version module
  • Loading branch information
bstansberry authored Dec 12, 2024
2 parents b124810 + 9149125 commit 288c84d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions version/src/main/java/org/jboss/as/version/ProductConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import java.util.stream.Collectors;

import org.jboss.modules.Module;
import org.jboss.modules.ModuleIdentifier;
import org.jboss.modules.ModuleLoader;

/**
Expand Down Expand Up @@ -224,7 +223,7 @@ public static String getPrettyVersionString(final String name, String version1,
}

private void setSystemProperties(final Properties propConfProps, final Map providedProperties) {
if (propConfProps.size() == 0) {
if (propConfProps.isEmpty()) {
return;
}

Expand Down Expand Up @@ -262,10 +261,10 @@ private static void safeClose(Closeable c) {

private static class ProductConfProps {
private final Properties miscProperties;
private final ModuleIdentifier productModuleId;
private final String productModuleId;

private ProductConfProps(String slot) {
this.productModuleId = slot == null ? null : ModuleIdentifier.create("org.jboss.as.product", slot);
this.productModuleId = slot == null ? null : "main".equals(slot) ? "org.jboss.as.product" : "org.jboss.as.product:" + slot;
this.miscProperties = new Properties();
}

Expand Down

0 comments on commit 288c84d

Please sign in to comment.