Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use defaults instead of null in IborRateSwapLegConvention #2622

Merged
merged 5 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public RateCalculationSwapLeg toLeg(
.businessDayAdjustment(accrualBusinessDayAdjustment)
.startDateBusinessDayAdjustment(startDateBusinessDayAdjustment)
.endDateBusinessDayAdjustment(endDateBusinessDayAdjustment)
.stubConvention(stubConvention)
.stubConvention(getStubConvention())
.rollConvention(rollConvention)
.build())
.paymentSchedule(PaymentSchedule.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public RateCalculationSwapLeg toLeg(
.businessDayAdjustment(getAccrualBusinessDayAdjustment())
.startDateBusinessDayAdjustment(startDateBusinessDayAdjustment)
.endDateBusinessDayAdjustment(endDateBusinessDayAdjustment)
.stubConvention(stubConvention)
.stubConvention(getStubConvention())
.rollConvention(rollConvention)
.build())
.paymentSchedule(PaymentSchedule.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import static com.opengamma.strata.basics.schedule.Frequency.P3M;
import static com.opengamma.strata.basics.schedule.Frequency.P6M;
import static com.opengamma.strata.basics.schedule.StubConvention.LONG_INITIAL;
import static com.opengamma.strata.basics.schedule.StubConvention.SMART_INITIAL;
import static com.opengamma.strata.collect.TestHelper.assertSerialization;
import static com.opengamma.strata.collect.TestHelper.coverBeanEquals;
import static com.opengamma.strata.collect.TestHelper.coverImmutableBean;
Expand Down Expand Up @@ -152,6 +153,7 @@ public void test_toLeg() {
.startDate(startDate)
.endDate(endDate)
.businessDayAdjustment(BDA_MOD_FOLLOW)
.stubConvention(SMART_INITIAL)
.build())
.paymentSchedule(PaymentSchedule.builder()
.paymentFrequency(P3M)
Expand All @@ -178,6 +180,7 @@ public void test_toLeg_withSpread() {
.startDate(startDate)
.endDate(endDate)
.businessDayAdjustment(BDA_MOD_FOLLOW)
.stubConvention(SMART_INITIAL)
.build())
.paymentSchedule(PaymentSchedule.builder()
.paymentFrequency(P3M)
Expand Down
Loading