Browse Source

SONAR-11514 drop support for old reports

tags/7.7
Sébastien Lesaint 5 years ago
parent
commit
59ca17e515

+ 1
- 2
server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/step/LoadQualityProfilesStep.java View File

@@ -73,7 +73,6 @@ public class LoadQualityProfilesStep implements ComputationStep {
private static ActiveRule convert(ScannerReport.ActiveRule input, Rule rule) {
RuleKey key = RuleKey.of(input.getRuleRepository(), input.getRuleKey());
Map<String, String> params = new HashMap<>(input.getParamsByKeyMap());
long updatedAt = input.getUpdatedAt();
return new ActiveRule(key, input.getSeverity().name(), params, updatedAt == 0 ? input.getCreatedAt() : updatedAt, rule.getPluginKey(), emptyToNull(input.getQProfileKey()));
return new ActiveRule(key, input.getSeverity().name(), params, input.getUpdatedAt(), rule.getPluginKey(), emptyToNull(input.getQProfileKey()));
}
}

Loading…
Cancel
Save