diff options
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java index 41451e6c305..d0d0066013b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleParam.java @@ -138,8 +138,7 @@ public class ActiveRuleParam implements Cloneable { @Override public Object clone() { - String paramKey = getParamKey() != null ? getParamKey() : getRuleParam().getKey(); - return new ActiveRuleParam(getActiveRule(), getRuleParam(), paramKey, getValue()); + return new ActiveRuleParam(getActiveRule(), getRuleParam(), getParamKey() != null ? getParamKey() : getRuleParam().getKey(), getValue()); } } |