From bed9043330a70cf4ee4ebcb61804ab7f9e6b9b17 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 31 Mar 2014 12:11:27 +0200 Subject: [PATCH] Fix wrong display of rule sub characteristic key and name --- .../main/java/org/sonar/server/rule/RuleDocumentParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/java/org/sonar/server/rule/RuleDocumentParser.java b/sonar-server/src/main/java/org/sonar/server/rule/RuleDocumentParser.java index f2092ab2135..712c4bbaea8 100644 --- a/sonar-server/src/main/java/org/sonar/server/rule/RuleDocumentParser.java +++ b/sonar-server/src/main/java/org/sonar/server/rule/RuleDocumentParser.java @@ -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), -- 2.39.5