Instantiate all ValidationMessage with this() instead of super() (#853)

super() would call Object() instead of ValidationMessage(). This way, debugging can track instantiations of ValidationMessage from one place

Co-authored-by: dotasek <david.otasek@smilecdr.com>
This commit is contained in:
dotasek 2022-07-18 13:26:13 -04:00 committed by GitHub
parent 14494d23b9
commit 5560093c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 12 deletions

View File

@ -128,7 +128,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
case ERROR: return "error";
case WARNING: return "warning";
case INFORMATION: return "information";
case NULL: return null;
case NULL: return null;
default: return "?";
}
}
@ -138,7 +138,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
case ERROR: return "http://hl7.org/fhir/issue-severity";
case WARNING: return "http://hl7.org/fhir/issue-severity";
case INFORMATION: return "http://hl7.org/fhir/issue-severity";
case NULL: return null;
case NULL: return null;
default: return "?";
}
}
@ -148,7 +148,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
case ERROR: return "The issue is sufficiently important to cause the action to fail.";
case WARNING: return "The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired.";
case INFORMATION: return "The issue has no relation to the degree of success of the action.";
case NULL: return null;
case NULL: return null;
default: return "?";
}
}
@ -158,7 +158,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
case ERROR: return "Error";
case WARNING: return "Warning";
case INFORMATION: return "Information";
case NULL: return null;
case NULL: return null;
default: return "?";
}
}
@ -388,7 +388,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
case TIMEOUT: return "timeout";
case THROTTLED: return "throttled";
case INFORMATIONAL: return "informational";
case NULL: return null;
case NULL: return null;
default: return "?";
}
}
@ -423,7 +423,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
case TIMEOUT: return "http://hl7.org/fhir/issue-type";
case THROTTLED: return "http://hl7.org/fhir/issue-type";
case INFORMATIONAL: return "http://hl7.org/fhir/issue-type";
case NULL: return null;
case NULL: return null;
default: return "?";
}
}
@ -458,7 +458,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
case TIMEOUT: return "An internal timeout has occurred.";
case THROTTLED: return "The system is not prepared to handle this request due to load management.";
case INFORMATIONAL: return "A message unrelated to the processing success of the completed operation (examples of the latter include things like reminders of password expiry, system maintenance times, etc.).";
case NULL: return null;
case NULL: return null;
default: return "?";
}
}
@ -493,7 +493,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
case TIMEOUT: return "Timeout";
case THROTTLED: return "Throttled";
case INFORMATIONAL: return "Informational Note";
case NULL: return null;
case NULL: return null;
default: return "?";
}
}
@ -526,7 +526,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
}
public ValidationMessage(Source source, IssueType type, String path, String message, IssueSeverity level) {
super();
this();
this.line = -1;
this.col = -1;
this.location = path;
@ -544,7 +544,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
}
public ValidationMessage(Source source, IssueType type, int line, int col, String path, String message, IssueSeverity level) {
super();
this();
this.line = line;
this.col = col;
this.location = path;
@ -560,7 +560,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
}
public ValidationMessage(Source source, IssueType type, String path, String message, String html, IssueSeverity level) {
super();
this();
this.line = -1;
this.col = -1;
this.location = path;
@ -578,7 +578,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
}
public ValidationMessage(Source source, IssueType type, int line, int col, String path, String message, String html, IssueSeverity level) {
super();
this();
this.line = line;
this.col = col;
this.location = path;