}
}
};
}
private void clear() {
<BUG>this.periods.clear();
}</BUG>
@Override
public List<Period> getPeriods() {
<BUG>return periods;
}
public void addPeriod(Period period) {
this.periods.add(period);
}</BUG>
}

}
}
};
}
private void clear() {
this.delegate = new PeriodsHolderImpl();
}
public void setPeriods(Period... periods) {
delegate = new PeriodsHolderImpl();
delegate.setPeriods(Arrays.asList(periods));
}
@Override
public List<Period> getPeriods() {
return delegate.getPeriods();
