Skip to content

Commit

Permalink
Fix Checkstyle violations
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Sep 28, 2022
1 parent 079c29c commit 43bbd85
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,8 @@ protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource
FileSystem fileSystem;
try {
fileSystem = FileSystems.getFileSystem(rootDirResource.getURI().resolve("/"));
} catch (Exception e) {
}
catch (Exception ex) {
fileSystem = FileSystems.newFileSystem(rootDirResource.getURI().resolve("/"), Map.of(),
ClassUtils.getDefaultClassLoader());
}
Expand All @@ -769,17 +770,20 @@ protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource
if (getPathMatcher().match(patternPath.toString(), file.toString())) {
try {
result.add(new UrlResource(file.toUri()));
} catch (MalformedURLException e) {
}
catch (MalformedURLException ex) {
// ignore
}
}
});
} catch (NoSuchFileException e) {
}
catch (NoSuchFileException ex) {
// ignore
}
try {
fileSystem.close();
} catch (UnsupportedOperationException e) {
}
catch (UnsupportedOperationException ex) {
// ignore
}
return result;
Expand Down

0 comments on commit 43bbd85

Please sign in to comment.