Skip to content

Commit 63bf891

Browse files
borcsokjCapstan
authored andcommitted
using class loader of SchemaVersion (instead of JsonLoader)
1 parent 1ffdc48 commit 63bf891

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/github/fge/jsonschema/SchemaVersion.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import java.io.IOException;
2727
import java.net.URI;
28+
import java.net.URL;
2829

2930
/**
3031
* JSON Schema versions
@@ -61,7 +62,8 @@ public enum SchemaVersion
6162
{
6263
try {
6364
location = URI.create(uri);
64-
schema = JsonLoader.fromResource(resource);
65+
final URL url = SchemaVersion.class.getResource(resource);
66+
schema = JsonLoader.fromURL(url);
6567
} catch (IOException e) {
6668
throw new ExceptionInInitializerError(e);
6769
}

0 commit comments

Comments
 (0)