@@ -208,10 +208,6 @@ private static SchemaLocation resolve(SchemaLocation schemaLocation, JsonNode sc
208208
209209 private Schema (SchemaContext schemaContext , SchemaLocation schemaLocation ,
210210 JsonNode schemaNode , Schema parent , boolean suppressSubSchemaRetrieval ) {
211- /*
212- super(resolve(schemaLocation, schemaNode, parent == null, schemaContext), evaluationPath, schemaNode, parent,
213- null, null, schemaContext, suppressSubSchemaRetrieval);
214- */
215211 this .schemaContext = schemaContext ;
216212 this .schemaLocation = resolve (schemaLocation , schemaNode , parent == null , schemaContext );
217213 this .schemaNode = schemaNode ;
@@ -273,26 +269,20 @@ private Schema(SchemaContext schemaContext, SchemaLocation schemaLocation,
273269 * @param schemaContext the schema context
274270 * @param parentSchema the parent schema
275271 * @param schemaLocation the schema location
276- * @param evaluationPath the evaluation path
277- * @param evaluationParentSchema the evaluation parent schema
278272 * @param errorMessage the error message
279273 */
280274 protected Schema (
281- /* Below from JsonSchema */
282275 List <KeywordValidator > validators ,
283276 boolean validatorsLoaded ,
284277 boolean recursiveAnchor ,
285278 TypeValidator typeValidator ,
286279 String id ,
287- /* Below from BaseJsonValidator */
288280 boolean suppressSubSchemaRetrieval ,
289281 JsonNode schemaNode ,
290282 SchemaContext schemaContext ,
291283 Schema parentSchema ,
292284 SchemaLocation schemaLocation ,
293285 Map <String , String > errorMessage ) {
294- // super(suppressSubSchemaRetrieval, schemaNode, schemaContext, errorMessageType, keyword,
295- // parentSchema, schemaLocation, evaluationPath, evaluationParentSchema, errorMessage);
296286 this .validators = validators ;
297287 this .validatorsLoaded = validatorsLoaded ;
298288 this .recursiveAnchor = recursiveAnchor ;
@@ -619,14 +609,6 @@ private List<KeywordValidator> read(JsonNode schemaNode) {
619609
620610 @ Override
621611 public void validate (ExecutionContext executionContext , JsonNode jsonNode , JsonNode rootNode , NodePath instanceLocation ) {
622- // String newEvaluationPath = new EvaluationPath(executionContext.getEvaluationPath()).toString();
623- // String oldEvaluationPath = getEvaluationPath().toString();
624- // if (!oldEvaluationPath.equals(newEvaluationPath)) {
625- // System.out.println("-----------------");
626- // System.out.println("MISMATCH OLD: " + oldEvaluationPath);
627- // System.out.println("MISMATCH NEW: " + newEvaluationPath);
628- // System.out.println("-----------------");
629- // }
630612 List <KeywordValidator > validators = getValidators (); // Load the validators before checking the flags
631613 executionContext .evaluationSchema .addLast (this );
632614 boolean unevaluatedPropertiesPresent = executionContext .unevaluatedPropertiesPresent ;
0 commit comments