Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert skip profile optimization because Quarkus mutates the source #1324

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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