Skip to content

Commit 1d27bf5

Browse files
alecharpjtnord
andcommitted
Changes system property name from enabled to defaultValue
Thanks @jtnord. Co-Authored-By: James Nord <jtnord@users.noreply.github.com>
1 parent 5114f05 commit 1d27bf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/jenkins/model/experimentalflags/BooleanUserExperimentalFlag.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
package jenkins.model.experimentalflags;
2626

2727
import edu.umd.cs.findbugs.annotations.NonNull;
28+
import jenkins.util.SystemProperties;
2829

2930
/**
3031
* @since 2.395
@@ -36,7 +37,7 @@ protected BooleanUserExperimentalFlag(@NonNull String flagKey) {
3637

3738
@Override
3839
public @NonNull Boolean getDefaultValue() {
39-
return Boolean.getBoolean(getClass().getName() + ".enabled");
40+
return SystemProperties.getBoolean(getClass().getName() + ".defaultValue");
4041
}
4142

4243
@Override

0 commit comments

Comments
 (0)