Skip to content

Commit 74d3f84

Browse files
committed
Incorrect usage of ClassLoader for Webjars fix #2429
1 parent 742925a commit 74d3f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jooby/src/main/java/io/jooby/AssetSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public interface AssetSource {
7171
*/
7272
static @Nonnull AssetSource webjars(@Nonnull ClassLoader loader, @Nonnull String name) {
7373
List<String> location = Arrays.asList(
74-
"/META-INF/maven/org.webjars/" + name + "/pom.properties",
75-
"/META-INF/maven/org.webjars.npm/" + name + "/pom.properties"
74+
"META-INF/maven/org.webjars/" + name + "/pom.properties",
75+
"META-INF/maven/org.webjars.npm/" + name + "/pom.properties"
7676
);
7777
String versionPath = location.stream().filter(it -> loader.getResource(it) != null)
7878
.findFirst()

0 commit comments

Comments
 (0)