Remove redundant array creation for calling varargs method
Closes gh-7526
This commit is contained in:
committed by
Stephane Nicoll
parent
e63174b93f
commit
2ae4515f3c
2
spring-boot/src/main/java/org/springframework/boot/env/YamlPropertySourceLoader.java
vendored
Normal file → Executable file
2
spring-boot/src/main/java/org/springframework/boot/env/YamlPropertySourceLoader.java
vendored
Normal file → Executable file
@@ -78,7 +78,7 @@ public class YamlPropertySourceLoader implements PropertySourceLoader {
|
||||
setMatchDefault(false);
|
||||
setDocumentMatchers(new SpringProfileDocumentMatcher(profile));
|
||||
}
|
||||
setResources(new Resource[] { resource });
|
||||
setResources(resource);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user