diff --git a/spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java b/spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java index 26f31ce1706..aed4d208063 100644 --- a/spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java +++ b/spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java @@ -474,7 +474,7 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol // Possibly "c:" drive prefix on Windows, to be upper-cased for proper duplicate detection filePath = StringUtils.capitalize(filePath); } - // # can appear in directories/filenames, java.net.URL should not treat it as a fragment + // Since '#' can appear in directories/filenames, java.net.URL should not treat it as a fragment filePath = StringUtils.replace(filePath, "#", "%23"); // Build URL that points to the root of the jar file UrlResource jarResource = new UrlResource(ResourceUtils.JAR_URL_PREFIX + @@ -602,8 +602,8 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol /** * Return whether the given resource handle indicates a jar resource - * that the {@code doFindPathMatchingJarResources} method can handle. - *
By default, the URL protocols "jar", "zip", "vfszip and "wsjar" + * that the {@link #doFindPathMatchingJarResources} method can handle. + *
By default, the URL protocols "jar", "zip", "vfszip, and "wsjar"
* will be treated as jar resources. This template method allows for
* detecting further kinds of jar-like resources, e.g. through
* {@code instanceof} checks on the resource handle type.
@@ -620,7 +620,7 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol
* Find all resources in jar files that match the given location pattern
* via the Ant-style PathMatcher.
* @param rootDirResource the root directory as Resource
- * @param rootDirURL the pre-resolved root directory URL
+ * @param rootDirUrl the pre-resolved root directory URL
* @param subPattern the sub pattern to match (below the root directory)
* @return a mutable Set of matching Resource instances
* @throws IOException in case of I/O errors
@@ -628,10 +628,10 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol
* @see java.net.JarURLConnection
* @see org.springframework.util.PathMatcher
*/
- protected Set