/src/main/java/net/finmath/marketdata/model/volatilities/SwaptionDataLattice.java
final int[] tenorsInMonths = getTenors( convertMoneyness( moneyness) , moneynessBP) ;
final int[] tenorsInMonths = getTenors ( convertMoneyness ( moneyness ) , maturityInMonths ) ;
} catch (final NullPointerException e) { return new int[0]; } } public double[] getTenors(final double moneyness, final double maturity) { final int maturityInMonths = (int) Math.round(maturity * 12); <extra_id_0> final double[] tenors = new double[tenorsInMonths.length]; for(int index = 0; index < tenors.length; index++) { tenors[index] = convertTenor(maturityInMonths, tenorsInMonths[index]); } return tenors; }