aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2014-03-14 11:17:04 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2014-03-14 11:17:04 +0100
commit472d569a5a820dfe6a11072f233f117fa37b2cd2 (patch)
tree0c939b9c825a4a7941153f892b9c2d57996786c3 /sonar-plugin-api/src/main/java/org/sonar
parent230627268c91d6fcc7cafb8420a7120b39dc8e28 (diff)
downloadsonarqube-472d569a5a820dfe6a11072f233f117fa37b2cd2.tar.gz
sonarqube-472d569a5a820dfe6a11072f233f117fa37b2cd2.zip
Remove some code from MeasuresFilters that is deprecated since 2.5
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java43
1 files changed, 2 insertions, 41 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java b/sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java
index 2e5309e4673..4ed4a8ffb1b 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/measures/MeasuresFilters.java
@@ -25,7 +25,6 @@ import org.sonar.api.technicaldebt.batch.Requirement;
import java.util.ArrayList;
import java.util.Collection;
-import java.util.Collections;
import java.util.List;
/**
@@ -88,7 +87,7 @@ public final class MeasuresFilters {
};
}
- private static boolean isSameCharacteristic(Measure measure, final Characteristic characteristic){
+ private static boolean isSameCharacteristic(Measure measure, final Characteristic characteristic) {
Characteristic measureCharacteristic = measure.getCharacteristic();
return measureCharacteristic != null &&
measureCharacteristic.equals(characteristic);
@@ -118,7 +117,7 @@ public final class MeasuresFilters {
};
}
- private static boolean isSameRequirement(Measure measure, final Requirement requirement){
+ private static boolean isSameRequirement(Measure measure, final Requirement requirement) {
Requirement measureRequirement = measure.getRequirement();
return measureRequirement != null &&
measureRequirement.equals(requirement);
@@ -143,31 +142,10 @@ public final class MeasuresFilters {
};
}
- /**
- * @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2007
- */
- @Deprecated
- public static MeasuresFilter<RuleMeasure> ruleCategory(final Metric metric, final Integer category) {
- return new RuleCategoryFilter(metric, category);
- }
-
public static MeasuresFilter<RuleMeasure> rule(final Metric metric, final Rule rule) {
return new RuleFilter(metric, rule);
}
- /**
- * @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2007
- */
- @Deprecated
- public static MeasuresFilter<Collection<RuleMeasure>> ruleCategories(final Metric metric) {
- return new MetricFilter<Collection<RuleMeasure>>(metric) {
-
- public Collection<RuleMeasure> filter(Collection<Measure> measures) {
- return Collections.emptyList();
- }
- };
- }
-
public static MeasuresFilter<Collection<RuleMeasure>> rules(final Metric metric) {
return new MetricFilter<Collection<RuleMeasure>>(metric) {
@@ -237,23 +215,6 @@ public final class MeasuresFilters {
}
}
- /**
- * @deprecated since 2.5. See http://jira.codehaus.org/browse/SONAR-2007
- */
- @Deprecated
- private static class RuleCategoryFilter extends AbstractRuleMeasureFilter<RuleMeasure> {
-
- protected RuleCategoryFilter(Metric metric, Integer categ) {
- super(metric);
- }
-
- @Override
- boolean doApply(RuleMeasure measure) {
- return false;
- }
- }
-
-
private static class RuleFilter extends AbstractRuleMeasureFilter<RuleMeasure> {
private Rule rule;