Skip to content

Commit 43bbd85

Browse files
committed
Fix Checkstyle violations
See spring-projectsgh-29163
1 parent 079c29c commit 43bbd85

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java

+8-4
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource
745745
FileSystem fileSystem;
746746
try {
747747
fileSystem = FileSystems.getFileSystem(rootDirResource.getURI().resolve("/"));
748-
} catch (Exception e) {
748+
}
749+
catch (Exception ex) {
749750
fileSystem = FileSystems.newFileSystem(rootDirResource.getURI().resolve("/"), Map.of(),
750751
ClassUtils.getDefaultClassLoader());
751752
}
@@ -769,17 +770,20 @@ protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource
769770
if (getPathMatcher().match(patternPath.toString(), file.toString())) {
770771
try {
771772
result.add(new UrlResource(file.toUri()));
772-
} catch (MalformedURLException e) {
773+
}
774+
catch (MalformedURLException ex) {
773775
// ignore
774776
}
775777
}
776778
});
777-
} catch (NoSuchFileException e) {
779+
}
780+
catch (NoSuchFileException ex) {
778781
// ignore
779782
}
780783
try {
781784
fileSystem.close();
782-
} catch (UnsupportedOperationException e) {
785+
}
786+
catch (UnsupportedOperationException ex) {
783787
// ignore
784788
}
785789
return result;

0 commit comments

Comments
 (0)