final Date referenceDate = baseCurve.referenceDate();
if (this.jumpDates.length==0 && jumps.length!=0) { // turn of year dates
this.jumpDates = new Date[nJumps];
this.jumpTimes = new double[nJumps];
for (int i=0; i<jumps.length; ++i) {
jumpDates[i] = new Date(31, Month.December, referenceDate.year()+i);
}
} else { // fixed dates
QL.require(jumpDates.length==nJumps, "mismatch between number of jumps and jump dates");
}
for (int i=0; i<nJumps; ++i) {