From 78fe541dfe26ac7b351006e992837a29bd4036f5 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 20 Nov 2013 18:06:08 +0100 Subject: [PATCH] SONAR-4775 Update warning messages --- .../sonar/core/technicaldebt/TechnicalDebtXMLImporter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-core/src/main/java/org/sonar/core/technicaldebt/TechnicalDebtXMLImporter.java b/sonar-core/src/main/java/org/sonar/core/technicaldebt/TechnicalDebtXMLImporter.java index 8d5211032e5..cfed80d225c 100644 --- a/sonar-core/src/main/java/org/sonar/core/technicaldebt/TechnicalDebtXMLImporter.java +++ b/sonar-core/src/main/java/org/sonar/core/technicaldebt/TechnicalDebtXMLImporter.java @@ -164,12 +164,12 @@ public class TechnicalDebtXMLImporter implements ServerExtension { CharacteristicProperty offset = characteristic.getProperty(TechnicalDebtRequirement.PROPERTY_OFFSET); offset.setValue(0d); - String message = String.format("Linear with threshold function is no more used, the function of the requirement on rule '%s:%s' is replaced by linear.", + String message = String.format("Linear with threshold function is no more used, function of the requirement '%s:%s' is replaced by linear.", characteristic.getRule().getRepositoryKey(), characteristic.getRule().getKey()); LOG.warn(message); messages.addWarningText(message); } else if ("constant_resource".equals(function.getTextValue())) { - String message = String.format("Constant / file function is no more used, requirement on rule '%s:%s' is ignored.", + String message = String.format("Constant/file function is no more used, requirements '%s:%s' are ignored.", characteristic.getRule().getRepositoryKey(), characteristic.getRule().getKey()); LOG.warn(message); messages.addWarningText(message); -- 2.39.5