File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ public virtual class RepoFactory {
1212 protected set ;
1313 }
1414
15+ @SuppressWarnings('PMD.AvoidBooleanMethodParameters')
1516 public RepoFactory setShouldPrintBindVars (Boolean shouldPrintBindVars ) {
1617 this .shouldPrintBindVars = shouldPrintBindVars ;
1718 return this ;
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public class RepoFactoryMock extends RepoFactory {
215215 public override List <SObject > fetch (Integer start , Integer advanceBy ) {
216216 List <SObject > clonedRecords = records .deepClone ();
217217 clonedRecords .clear ();
218- for (Integer index = start ; index < this .getAdvanceBy (start , advanceBy ); index ++ ) {
218+ for (Integer index = start ; index < this .getAdvanceBy (start , advanceBy ) + start ; index ++ ) {
219219 clonedRecords .add (this .records [index ]);
220220 }
221221 return clonedRecords ;
You can’t perform that action at this time.
0 commit comments