import java.util.List;</BUG>
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
public class PeriodsHolderRule implements TestRule, PeriodsHolder {
<BUG>private List<Period> periods = new ArrayList<>();
@Override</BUG>
public Statement apply(final Statement statement, Description description) {
return new Statement() {
@Override

package org.sonar.server.computation.period;
import java.util.Arrays;
import java.util.List;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
public class PeriodsHolderRule implements TestRule, PeriodsHolder {
private PeriodsHolderImpl delegate = new PeriodsHolderImpl();
@Override
public Statement apply(final Statement statement, Description description) {
return new Statement() {
@Override
