Skip to content

Commit 3ee1046

Browse files
committed
changing Main.class to getClass() in readme
1 parent a31c1d3 commit 3ee1046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import org.everit.jsonvalidator.loader.SchemaLoader;
1313
import org.json.JSONObject;
1414
import org.json.JSONTokener;
1515
// ...
16-
JSONObject rawSchema = new JSONObject(new JSONTokener(Main.class.getResourceAsStream("/path/to/your/schema.json")));
16+
JSONObject rawSchema = new JSONObject(new JSONTokener(getClass().getResourceAsStream("/path/to/your/schema.json")));
1717
Schema schema = SchemaLoader.load(rawSchema);
1818
schema.validate(new JSONObject("{\"hello\" : \"world\"}")); // throws a ValidationException if this object is invalid
1919
```

0 commit comments

Comments
 (0)