}
return value;
}
@Override
public int generatePreviousValue(int reference) throws NoSuchValueException {
<BUG>On on = ((On)cronField.getExpression());
</BUG>
int value = generateValue(on, year, month);
<BUG>if(value>=reference){
</BUG>
throw new NoSuchValueException();

}
@Override
public int generateNextValue(int reference) throws NoSuchValueException {
On on = ((On) cronField.getExpression());
int value = generateValue(on, year, month);
if (value <= reference) {
