]> source.dussan.org Git - sonarqube.git/commitdiff
Fix wrong display of rule sub characteristic key and name
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 31 Mar 2014 10:11:27 +0000 (12:11 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 31 Mar 2014 10:11:37 +0000 (12:11 +0200)
sonar-server/src/main/java/org/sonar/server/rule/RuleDocumentParser.java

index f2092ab213588540798cadd903786cb2fdd84d85..712c4bbaea81af7d5681d6ec757e6bd18d1bf762 100644 (file)
@@ -59,8 +59,8 @@ public class RuleDocumentParser {
         ruleBuilder
           .setDebtCharacteristicKey((String) ruleSource.get(RuleDocument.FIELD_CHARACTERISTIC_KEY))
           .setDebtCharacteristicName((String) ruleSource.get(RuleDocument.FIELD_CHARACTERISTIC_NAME))
-          .setDebtSubCharacteristicKey((String) ruleSource.get(RuleDocument.FIELD_CHARACTERISTIC_KEY))
-          .setDebtSubCharacteristicName((String) ruleSource.get(RuleDocument.FIELD_CHARACTERISTIC_NAME))
+          .setDebtSubCharacteristicKey((String) ruleSource.get(RuleDocument.FIELD_SUB_CHARACTERISTIC_KEY))
+          .setDebtSubCharacteristicName((String) ruleSource.get(RuleDocument.FIELD_SUB_CHARACTERISTIC_NAME))
           .setDebtRemediationFunction(
             new DefaultDebtRemediationFunction(DebtRemediationFunction.Type.valueOf((String) ruleSource.get(RuleDocument.FIELD_REMEDIATION_FUNCTION)),
               (String) ruleSource.get(RuleDocument.FIELD_REMEDIATION_COEFFICIENT),