Skip to content

Commit

Permalink
Revert skip profile optimization because Quarkus mutates the source
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Feb 19, 2025
1 parent 57b06ae commit 569fe33
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package io.smallrye.config;

import static io.smallrye.config.common.utils.ConfigSourceUtil.CONFIG_ORDINAL_KEY;
import static io.smallrye.config.common.utils.ConfigSourceUtil.hasProfiledName;
import static io.smallrye.config.common.utils.ConfigSourceUtil.propertiesToMap;
import static java.security.AccessController.doPrivileged;
import static java.util.Collections.unmodifiableMap;
Expand All @@ -37,11 +36,8 @@ public class SysPropConfigSource extends AbstractConfigSource {
public static final String NAME = "SysPropConfigSource";
public static final int ORDINAL = 400;

private final boolean hasProfiledName;

public SysPropConfigSource() {
super(NAME, getSystemOrdinal());
this.hasProfiledName = hasProfiledName(getPropertyNames());
}

@Override
Expand Down Expand Up @@ -74,9 +70,6 @@ public Set<String> run() {

@Override
public String getValue(String propertyName) {
if (!hasProfiledName && !propertyName.isEmpty() && propertyName.charAt(0) == '%') {
return null;
}
return getSystemProperty(propertyName);
}

Expand Down

0 comments on commit 569fe33

Please sign in to comment.