Merge pull request #709 from bbaldino/fix_parse_replacement

use correct ParseOptions object
This commit is contained in:
Havoc Pennington 2020-09-24 15:58:24 -04:00 committed by GitHub
commit 82df5a6b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1129,8 +1129,8 @@ public final class ConfigFactory {
* if none was specified.
*/
public static java.util.Optional<Config> parseApplicationReplacement(ConfigParseOptions parseOptions) {
ensureClassLoader(parseOptions, "parseApplicationReplacement");
ClassLoader loader = parseOptions.getClassLoader();
final ConfigParseOptions withLoader = ensureClassLoader(parseOptions, "parseApplicationReplacement");
ClassLoader loader = withLoader.getClassLoader();
int specified = 0;