From be0d369cc442bde9fef51c9763580536f4ffb8e1 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 10 Jan 2014 08:42:10 +0100 Subject: Fix quality flaws --- .../src/main/java/org/sonar/api/rules/ActiveRuleParam.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sonar-plugin-api') 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()); } } -- cgit v1.2.3