diff options
Diffstat (limited to 'sonar-batch')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/ViolationsDao.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/ViolationsDao.java b/sonar-batch/src/main/java/org/sonar/batch/ViolationsDao.java index 41393753a52..304105442f1 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/ViolationsDao.java +++ b/sonar-batch/src/main/java/org/sonar/batch/ViolationsDao.java @@ -52,7 +52,7 @@ public class ViolationsDao { List<RuleFailureModel> models = session.getResults(RuleFailureModel.class, "snapshotId", snapshotId); List<Violation> violations = new ArrayList<Violation>(); for (RuleFailureModel model : models) { - Violation violation = new Violation(model.getRule(), resource); + Violation violation = Violation.create(model.getRule(), resource); violation.setLineId(model.getLine()); violation.setMessage(model.getMessage()); violation.setPriority(model.getPriority()); |