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

@ -526,7 +526,7 @@ public class ValidationMessage implements Comparator<ValidationMessage>, Compara
} }
public ValidationMessage(Source source, IssueType type, String path, String message, IssueSeverity level) { public ValidationMessage(Source source, IssueType type, String path, String message, IssueSeverity level) {
super(); this();
this.line = -1; this.line = -1;
this.col = -1; this.col = -1;
this.location = path; 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) { public ValidationMessage(Source source, IssueType type, int line, int col, String path, String message, IssueSeverity level) {
super(); this();
this.line = line; this.line = line;
this.col = col; this.col = col;
this.location = path; 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) { public ValidationMessage(Source source, IssueType type, String path, String message, String html, IssueSeverity level) {
super(); this();
this.line = -1; this.line = -1;
this.col = -1; this.col = -1;
this.location = path; 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) { public ValidationMessage(Source source, IssueType type, int line, int col, String path, String message, String html, IssueSeverity level) {
super(); this();
this.line = line; this.line = line;
this.col = col; this.col = col;
this.location = path; this.location = path;