diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-07-18 11:10:08 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-07-18 13:15:50 +0200 |
commit | 7cdbfc9e015093f8f2c58b43a106e6b347728bcf (patch) | |
tree | 1166f01640b49d9d142f7575fb1e27f60173401b /sonar-plugin-api/src/main/java/org/sonar/api/rules | |
parent | 0dff22bda049bcb3f5fa8cb0bcb5d9ea8a80fe8c (diff) | |
download | sonarqube-7cdbfc9e015093f8f2c58b43a106e6b347728bcf.tar.gz sonarqube-7cdbfc9e015093f8f2c58b43a106e6b347728bcf.zip |
Fix Quality flaws
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/rules')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java index 80f219d61d9..8b47b12f4b2 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java @@ -19,7 +19,6 @@ */ package org.sonar.api.rules; -import com.google.common.base.Function; import com.google.common.collect.Lists; import java.util.ArrayList; import java.util.Date; @@ -288,13 +287,10 @@ public class ActiveRule implements Cloneable { final ActiveRule clone = new ActiveRule(getRulesProfile(), getRule(), getSeverity()); clone.setInheritance(getInheritance()); if (activeRuleParams != null && !activeRuleParams.isEmpty()) { - clone.setActiveRuleParams(Lists.transform(activeRuleParams, new Function<ActiveRuleParam, ActiveRuleParam>() { - @Override - public ActiveRuleParam apply(ActiveRuleParam input) { - ActiveRuleParam activeRuleParamClone = (ActiveRuleParam) input.clone(); - activeRuleParamClone.setActiveRule(clone); - return activeRuleParamClone; - } + clone.setActiveRuleParams(Lists.transform(activeRuleParams, input -> { + ActiveRuleParam activeRuleParamClone = (ActiveRuleParam) input.clone(); + activeRuleParamClone.setActiveRule(clone); + return activeRuleParamClone; })); } return clone; |