diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-23 17:28:25 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-23 17:28:25 +0000 |
commit | 1dfd7034c4cb735683949cef50a8e3809bab6a35 (patch) | |
tree | bd5692842fa4e17eb557bfaadd86e70654824a54 /sonar-batch | |
parent | ab9fa99f65324e32caccc5f7016b9aa88c56aca2 (diff) | |
download | sonarqube-1dfd7034c4cb735683949cef50a8e3809bab6a35.tar.gz sonarqube-1dfd7034c4cb735683949cef50a8e3809bab6a35.zip |
add AnnotationRuleRepository to load rules from sonar-check-api annotations
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()); |