mirror of
https://github.com/lightbend/config.git
synced 2025-03-26 12:06:02 +08:00
remove a redundant setClassLoader on parse options in loadDefaultConfig()
This commit is contained in:
parent
b30be8a392
commit
e7f203bf45
@ -166,7 +166,7 @@ public final class ConfigFactory {
|
||||
}
|
||||
|
||||
private static Config loadDefaultConfig(ClassLoader loader) {
|
||||
return loadDefaultConfig(loader, ConfigParseOptions.defaults().setClassLoader(loader));
|
||||
return loadDefaultConfig(loader, ConfigParseOptions.defaults());
|
||||
}
|
||||
|
||||
private static Config loadDefaultConfig(ClassLoader loader, ConfigParseOptions parseOptions) {
|
||||
@ -298,7 +298,7 @@ public final class ConfigFactory {
|
||||
/**
|
||||
* Like {@link #load()} but allows specifying a class loader other than the
|
||||
* thread's current context class loader, and resolve options
|
||||
*
|
||||
*
|
||||
* @param loader
|
||||
* class loader for finding resources
|
||||
* @param resolveOptions
|
||||
|
Loading…
Reference in New Issue
Block a user