Remove redundant array creation for calling varargs method

Closes gh-7526
This commit is contained in:
Oscar Utbult
2016-11-29 18:57:20 +01:00
committed by Stephane Nicoll
parent e63174b93f
commit 2ae4515f3c

View File

@@ -78,7 +78,7 @@ public class YamlPropertySourceLoader implements PropertySourceLoader {
setMatchDefault(false);
setDocumentMatchers(new SpringProfileDocumentMatcher(profile));
}
setResources(new Resource[] { resource });
setResources(resource);
}
@Override