Class ImpactMapper
- java.lang.Object
-
- org.sonar.api.server.rule.internal.ImpactMapper
-
@Deprecated(since="10.1") public class ImpactMapper extends java.lang.Object
Deprecated.since 10.1 This is only used for mapping deprecated types and severities until they are removed
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String
convertToDeprecatedSeverity(Severity severity)
Deprecated.static Severity
convertToImpactSeverity(java.lang.String deprecatedSeverity)
Deprecated.static RuleType
convertToRuleType(SoftwareQuality softwareQuality)
Deprecated.static SoftwareQuality
convertToSoftwareQuality(RuleType ruleType)
Deprecated.static java.util.Map.Entry<SoftwareQuality,Severity>
getBestImpactForBackmapping(java.util.Map<SoftwareQuality,Severity> impacts)
Deprecated.This method is needed for picking the best impact on which we are going to base backmapping (getting type and severity from impact).
-
-
-
Method Detail
-
convertToSoftwareQuality
public static SoftwareQuality convertToSoftwareQuality(RuleType ruleType)
Deprecated.
-
convertToRuleType
public static RuleType convertToRuleType(SoftwareQuality softwareQuality)
Deprecated.
-
convertToDeprecatedSeverity
public static java.lang.String convertToDeprecatedSeverity(Severity severity)
Deprecated.
-
convertToImpactSeverity
public static Severity convertToImpactSeverity(java.lang.String deprecatedSeverity)
Deprecated.
-
getBestImpactForBackmapping
public static java.util.Map.Entry<SoftwareQuality,Severity> getBestImpactForBackmapping(java.util.Map<SoftwareQuality,Severity> impacts)
Deprecated.This method is needed for picking the best impact on which we are going to base backmapping (getting type and severity from impact). As Impacts like any ordering (there is no "best" impact, all of them are equal) we just need to ensure that our choice is consistent to make sure we always pick the same impact when the list (map) of impacts is the same.
-
-