See gh-14667
This commit is contained in:
Johnny Lim
2018-10-03 18:30:14 +09:00
committed by Stephane Nicoll
parent b4a8ad06de
commit 335775892b
8 changed files with 24 additions and 25 deletions

View File

@@ -130,7 +130,7 @@ final class ClassLoaderFilesResourcePatternResolver implements ResourcePatternRe
for (Entry<String, ClassLoaderFile> entry : sourceFolder.getFilesEntrySet()) {
String name = entry.getKey();
ClassLoaderFile file = entry.getValue();
if (entry.getValue().getKind() != Kind.DELETED
if (file.getKind() != Kind.DELETED
&& this.antPathMatcher.match(trimmedLocationPattern, name)) {
URL url = new URL("reloaded", null, -1, "/" + name,
new ClassLoaderFileURLStreamHandler(file));