Skip to content

Commit

Permalink
Fixed PMD issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mercyblitz committed Oct 3, 2018
1 parent 91e8795 commit 356d994
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ private void appendPropertySource(CompositePropertySource propertySource, Resour
ResourcePatternResolver resourcePatternResolver = new PathMatchingResourcePatternResolver(resourceLoader);
Resource[] resources = resourcePatternResolver.getResources(RESOURCE_LOCATION_PATTERN);
for (Resource resource : resources) {
if (resource.exists()) { // Add if exists
// Add if exists
if (resource.exists()) {
String internalName = String.valueOf(resource.getURL());
propertySource.addPropertySource(new ResourcePropertySource(internalName,
new EncodedResource(resource, FILE_ENCODING)));
Expand Down

0 comments on commit 356d994

Please sign in to comment.