/src/main/java/net/finmath/montecarlo/interestrate/products/SwapLeg.java
if ( ( spreads[periodIndex]) != 0) {   coupon = new LinearCombinationIndex( 1, index, 1, new FixedCoupon( spreads[periodIndex]) ) ; }else {   coupon = index; }
[Delete]
if(periodLength == 0) { continue; } AbstractIndex coupon; if(index != null) { if(spread != 0) { <extra_id_0> } else { coupon = index; } } else { coupon = new FixedCoupon(spread);