aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/checks
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-10-23 11:12:33 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-10-23 11:12:33 +0200
commit8a8788fb4e8eb083935fdca81884f21fb443d6a4 (patch)
treeec0cb8c97db35104b1ceb85562e08616cb1e676c /sonar-plugin-api/src/main/java/org/sonar/api/checks
parentc408b3c0bf41d1b897d58f394a9a7133f53bfd1e (diff)
downloadsonarqube-8a8788fb4e8eb083935fdca81884f21fb443d6a4.tar.gz
sonarqube-8a8788fb4e8eb083935fdca81884f21fb443d6a4.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/checks')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/checks/CheckFactory.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/checks/CheckFactory.java b/sonar-plugin-api/src/main/java/org/sonar/api/checks/CheckFactory.java
index b6c039e15c8..f4f9f81d514 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/checks/CheckFactory.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/checks/CheckFactory.java
@@ -29,10 +29,10 @@ import java.util.Map;
/**
* @since 2.3
*/
-public abstract class CheckFactory<CHECK> {
+public abstract class CheckFactory<C> {
- private Map<ActiveRule, CHECK> checkByActiveRule = Maps.newIdentityHashMap();
- private Map<CHECK, ActiveRule> activeRuleByCheck = Maps.newIdentityHashMap();
+ private Map<ActiveRule, C> checkByActiveRule = Maps.newIdentityHashMap();
+ private Map<C, ActiveRule> activeRuleByCheck = Maps.newIdentityHashMap();
private RulesProfile profile;
private String repositoryKey;
@@ -45,27 +45,27 @@ public abstract class CheckFactory<CHECK> {
checkByActiveRule.clear();
activeRuleByCheck.clear();
for (ActiveRule activeRule : profile.getActiveRulesByRepository(repositoryKey)) {
- CHECK check = createCheck(activeRule);
+ C check = createCheck(activeRule);
checkByActiveRule.put(activeRule, check);
activeRuleByCheck.put(check, activeRule);
}
}
- abstract CHECK createCheck(ActiveRule activeRule);
+ abstract C createCheck(ActiveRule activeRule);
public final String getRepositoryKey() {
return repositoryKey;
}
- public final Collection<CHECK> getChecks() {
+ public final Collection<C> getChecks() {
return checkByActiveRule.values();
}
- public final CHECK getCheck(ActiveRule activeRule) {
+ public final C getCheck(ActiveRule activeRule) {
return checkByActiveRule.get(activeRule);
}
- public final ActiveRule getActiveRule(CHECK check) {
+ public final ActiveRule getActiveRule(C check) {
return activeRuleByCheck.get(check);
}
}