aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedViolations.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedViolations.java b/sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedViolations.java
index 8ebc4150672..d0db555891a 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedViolations.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/issue/DeprecatedViolations.java
@@ -52,7 +52,7 @@ public class DeprecatedViolations implements BatchComponent {
.createdDate(creationDate)
.componentKey(violation.getResource().getEffectiveKey())
.ruleKey(RuleKey.of(violation.getRule().getRepositoryKey(), violation.getRule().getKey()))
- .cost(violation.getCost())
+ .effortToFix(violation.getCost())
.line(violation.getLineId())
.description(violation.getMessage())
.severity(violation.getSeverity() != null ? violation.getSeverity().name() : Severity.MAJOR)