From 26eb05219a12140aaff09770b183f79a31fb1f7d Mon Sep 17 00:00:00 2001 From: Stefan Otto Date: Thu, 22 Jun 2023 13:00:33 +0200 Subject: [PATCH] ValidationEngine::validate(): print source file getRef() instead of Object::toString() `ValidationUtils.SourceFile` does not override Java's default implementation of `toString()`, which is why `validate()' currently prints "Validate org.hl7.fhir.validation.ValidatorUtils$SourceFile@5382184b" or something like that. --- .../main/java/org/hl7/fhir/validation/ValidationEngine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java index 922f8fad7..c55a8546a 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java @@ -598,7 +598,7 @@ public class ValidationEngine implements IValidatorResourceFetcher, IValidationP if (ref.isProcess() || all) { TimeTracker.Session tts = context.clock().start("validation"); context.clock().milestone(); - System.out.println(" Validate " + ref); + System.out.println(" Validate " + ref.getRef()); try { OperationOutcome outcome = validate(ref.getRef(), ref.getCnt().getFocus(), ref.getCnt().getCntType(), profiles, record); @@ -1183,4 +1183,4 @@ public class ValidationEngine implements IValidatorResourceFetcher, IValidationP } -} \ No newline at end of file +}