diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-01-10 08:42:10 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-01-10 08:42:10 +0100 |
commit | be0d369cc442bde9fef51c9763580536f4ffb8e1 (patch) | |
tree | 30c962feedfe80a727a50e1aa1ecb0e95d456331 /sonar-plugin-api | |
parent | 48250940c4ad53bf04538deda83669f53cc367a3 (diff) | |
download | sonarqube-be0d369cc442bde9fef51c9763580536f4ffb8e1.tar.gz sonarqube-be0d369cc442bde9fef51c9763580536f4ffb8e1.zip |
Fix quality flaws
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()); } } |