Merge pull request #504 from pieter-edelman-nictiz/502

Fix for a bug where the line number was reported as column number when validating constraints
This commit is contained in:
Grahame Grieve 2021-05-31 08:44:17 +10:00 committed by GitHub
commit aeb87c8c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5044,7 +5044,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
} else if (inv.getSeverity() == ConstraintSeverity.ERROR) { } else if (inv.getSeverity() == ConstraintSeverity.ERROR) {
rule(errors, IssueType.INVARIANT, element.line(), element.col(), path, ok, inv.getKey() + ": '" + inv.getHuman()+"' " + msg); rule(errors, IssueType.INVARIANT, element.line(), element.col(), path, ok, inv.getKey() + ": '" + inv.getHuman()+"' " + msg);
} else if (inv.getSeverity() == ConstraintSeverity.WARNING) { } else if (inv.getSeverity() == ConstraintSeverity.WARNING) {
warning(errors, IssueType.INVARIANT, element.line(), element.line(), path, ok, inv.getKey() + ": '" + inv.getHuman()+"' " + msg); warning(errors, IssueType.INVARIANT, element.line(), element.col(), path, ok, inv.getKey() + ": '" + inv.getHuman()+"' " + msg);
} }
} }
} }