File tree 1 file changed +2
-2
lines changed
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2019 the original author or authors.
2
+ * Copyright 2012-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ public String[] getFileExtensions() {
43
43
44
44
@ Override
45
45
public List <PropertySource <?>> load (String name , Resource resource ) throws IOException {
46
- if (!ClassUtils .isPresent ("org.yaml.snakeyaml.Yaml" , null )) {
46
+ if (!ClassUtils .isPresent ("org.yaml.snakeyaml.Yaml" , getClass (). getClassLoader () )) {
47
47
throw new IllegalStateException (
48
48
"Attempted to load " + name + " but snakeyaml was not found on the classpath" );
49
49
}
You can’t perform that action at this time.
0 commit comments