Skip to content

Commit 1a77fbd

Browse files
committed
removing unused parameter of ReferenceLookup#initJsonObjectWithId()
1 parent af2def0 commit 1a77fbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/org/everit/json/schema/loader/ReferenceLookup.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Schema.Builder<?> lookup(String relPointerString, JsonObject ctx) {
170170
return refBuilder;
171171
}
172172

173-
private JsonObject initJsonObjectWithId(Object rawObject, URI id) {
173+
private JsonObject initJsonObjectById(URI id) {
174174
JsonObject o = JsonValue.of(ls.config.schemasByURI.get(id)).requireObject();
175175
new LoadingState(ls.config, ls.pointerSchemas, o, o, id, SchemaLocation.parseURI(id.toString()));
176176
return o;
@@ -183,10 +183,10 @@ private JsonPointerEvaluator createPointerEvaluator(String absPointerString) {
183183
try {
184184
Uri uri = Uri.parse(absPointerString);
185185
if (ls.config.schemasByURI.containsKey(uri.asJavaURI())) {
186-
JsonObject o = initJsonObjectWithId(ls.config.schemasByURI.get(uri.asJavaURI()), uri.asJavaURI());
186+
JsonObject o = initJsonObjectById(uri.asJavaURI());
187187
return JsonPointerEvaluator.forDocument(o, "#");
188188
} else if (ls.config.schemasByURI.containsKey(uri.toBeQueried)) {
189-
JsonObject o = initJsonObjectWithId(ls.config.schemasByURI.get(uri.toBeQueried), uri.toBeQueried);
189+
JsonObject o = initJsonObjectById(uri.toBeQueried);
190190
return JsonPointerEvaluator.forDocument(o, uri.fragment);
191191
}
192192
} catch (URISyntaxException e) {

0 commit comments

Comments
 (0)