mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
make non-public getEnvironmentAsConfig and getSystemPropertiesAsConfig
This commit is contained in:
parent
1b3d6d429f
commit
82586d7a02
@ -37,14 +37,14 @@ public class ConfigImpl {
|
||||
return merged;
|
||||
}
|
||||
|
||||
public static ConfigObject getEnvironmentAsConfig() {
|
||||
static ConfigObject getEnvironmentAsConfig() {
|
||||
// This should not need to create a new config object
|
||||
// as long as the transformer is just the default transformer.
|
||||
return AbstractConfigObject.transformed(envVariablesConfig(),
|
||||
withExtraTransformer(null));
|
||||
}
|
||||
|
||||
public static ConfigObject getSystemPropertiesAsConfig() {
|
||||
static ConfigObject getSystemPropertiesAsConfig() {
|
||||
// This should not need to create a new config object
|
||||
// as long as the transformer is just the default transformer.
|
||||
return AbstractConfigObject.transformed(systemPropertiesConfig(),
|
||||
|
Loading…
Reference in New Issue
Block a user