import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
+import javax.annotation.Nullable;
import org.sonar.api.rule.RuleKey;
import org.sonar.api.rules.Rule;
public static MeasuresFilter<Measure> metric(final String metricKey) {
return new MetricFilter<Measure>(metricKey) {
@Override
- public Measure filter(Collection<Measure> measures) {
+ public Measure filter(@Nullable Collection<Measure> measures) {
if (measures == null) {
return null;
}
public static MeasuresFilter<Measure> measure(final Measure measure) {
return new MeasuresFilter<Measure>() {
@Override
- public Measure filter(Collection<Measure> measures) {
+ public Measure filter(@Nullable Collection<Measure> measures) {
if (measures == null) {
return null;
}
}
@Override
- public Collection<RuleMeasure> filter(Collection<Measure> measures) {
+ public Collection<RuleMeasure> filter(@Nullable Collection<Measure> measures) {
if (measures == null) {
return null;
}
abstract boolean doApply(RuleMeasure ruleMeasure);
@Override
- public M filter(Collection<Measure> measures) {
+ public M filter(@Nullable Collection<Measure> measures) {
if (measures == null) {
return null;
}