Skip to content

Commit 994e9a6

Browse files
committed
fix: Apply Spotless formatting to resolve CI violations
- Fix formatting violations in InterestRateChart.java - Addresses Spotless check failures mentioned by @adamsaghy - Resolves CI build issues preventing PR merge Fixes apache#4793
1 parent 004760a commit 994e9a6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

fineract-savings/src/main/java/org/apache/fineract/portfolio/interestratechart/domain/InterestRateChart.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,16 @@ public void validateChartSlabs(DataValidatorBuilder baseDataValidator) {
144144
&& nextSlabs.slabFields().isValidChart(isPrimaryGroupingByAmount)) {
145145
if (iSlabs.slabFields().isRateChartOverlapping(nextSlabs.slabFields(), isPrimaryGroupingByAmount)) {
146146
baseDataValidator.failWithCodeNoParameterAddedToErrorCode("chart.slabs.range.overlapping",
147-
slabContext + " and " + nextSlabContext + "There is an overlap between these slabs. Please ensure slabs do not overlap.",
147+
slabContext + " and " + nextSlabContext
148+
+ "There is an overlap between these slabs. Please ensure slabs do not overlap.",
148149
iSlabs.slabFields().fromPeriod(), iSlabs.slabFields().toPeriod(), nextSlabs.slabFields().fromPeriod(),
149150
nextSlabs.slabFields().toPeriod(), iSlabs.slabFields().getAmountRangeFrom(),
150151
iSlabs.slabFields().getAmountRangeTo(), nextSlabs.slabFields().getAmountRangeFrom(),
151152
nextSlabs.slabFields().getAmountRangeTo());
152153
} else if (iSlabs.slabFields().isRateChartHasGap(nextSlabs.slabFields(), isPrimaryGroupingByAmount)) {
153154
baseDataValidator.failWithCodeNoParameterAddedToErrorCode("chart.slabs.range.has.gap",
154-
slabContext + " and " + nextSlabContext + "There is a gap between these slabs. Please ensure slabs are continuous.",
155+
slabContext + " and " + nextSlabContext
156+
+ "There is a gap between these slabs. Please ensure slabs are continuous.",
155157
iSlabs.slabFields().fromPeriod(), iSlabs.slabFields().toPeriod(), nextSlabs.slabFields().fromPeriod(),
156158
nextSlabs.slabFields().toPeriod(), iSlabs.slabFields().getAmountRangeFrom(),
157159
iSlabs.slabFields().getAmountRangeTo(), nextSlabs.slabFields().getAmountRangeFrom(),
@@ -172,7 +174,8 @@ public void validateChartSlabs(DataValidatorBuilder baseDataValidator) {
172174
} else if (!iSlabs.slabFields().isPeriodsSame(nextSlabs.slabFields())) {
173175
if (InterestRateChartSlabFields.isNotProperAmountStart(nextSlabs.slabFields())) {
174176
baseDataValidator.failWithCodeNoParameterAddedToErrorCode("chart.slabs.amount.range.start.incorrect",
175-
nextSlabContext + "The start amount of this slab is incorrect.", nextSlabs.slabFields().getAmountRangeFrom());
177+
nextSlabContext + "The start amount of this slab is incorrect.",
178+
nextSlabs.slabFields().getAmountRangeFrom());
176179
}
177180
if (iSlabs.slabFields().getAmountRangeTo() != null) {
178181
baseDataValidator.failWithCodeNoParameterAddedToErrorCode("chart.slabs.amount.range.end.incorrect",

0 commit comments

Comments
 (0)