/src/main/java/net/finmath/time/ScheduleGenerator.java
periodEndDate  = periodStartDate;periodStartDate  = periodEndDate;
periodStartDate  = periodEndDate;
if(periodStartDate.compareTo(periodEndDate) == 0) { continue; } final LocalDate fixingDate = businessdayCalendar.getRolledDate(periodStartDate, fixingOffsetDays); final LocalDate paymentDate = businessdayCalendar.getRolledDate(periodEndDate, paymentOffsetDays); periods.add(new Period(fixingDate, paymentDate, periodStartDate, periodEndDate)); <extra_id_0> periodStartDateUnadjusted = periodEndDateUnadjusted; } } else { LocalDate periodStartDateUnadjusted = maturityDate; LocalDate periodEndDateUnadjusted = maturityDate; LocalDate periodEndDate = businessdayCalendar.getAdjustedDate(periodEndDateUnadjusted, dateRollConvention);