Skip to content

Commit 5a04b28

Browse files
authored
fix: Fix typo in argument name (#6556)
1 parent e28fe18 commit 5a04b28

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

src/main/java/spoon/reflect/visitor/ElementPrinterHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ public void writeIfOrLoopBlock(CtStatement block) {
513513
* prefixed with `start`, separated by `next` and suffixed by `end`
514514
* @param startPrefixSpace if true then `start` token is prefixed with space
515515
* @param start the string which has to be printed at the beginning of the list
516-
* @param startSufficSpace if true then `start` token is suffixed with space
516+
* @param startSuffixSpace if true then `start` token is suffixed with space
517517
* @param nextPrefixSpace if true then `next` token is prefixed with space
518518
* @param next the string which has to be used as separator before each next item
519519
* @param nextSuffixSpace if true then `next` token is suffixed with space
@@ -522,8 +522,8 @@ public void writeIfOrLoopBlock(CtStatement block) {
522522
* @return the {@link ListPrinter} whose {@link ListPrinter#printSeparatorIfAppropriate()} has to be called
523523
* before printing of each item.
524524
*/
525-
private ListPrinter createListPrinter(boolean startPrefixSpace, String start, boolean startSufficSpace, boolean nextPrefixSpace, String next, boolean nextSuffixSpace, boolean endPrefixSpace, String end) {
526-
return new ListPrinter(printer, startPrefixSpace, start, startSufficSpace, nextPrefixSpace, next, nextSuffixSpace, endPrefixSpace, end);
525+
private ListPrinter createListPrinter(boolean startPrefixSpace, String start, boolean startSuffixSpace, boolean nextPrefixSpace, String next, boolean nextSuffixSpace, boolean endPrefixSpace, String end) {
526+
return new ListPrinter(printer, startPrefixSpace, start, startSuffixSpace, nextPrefixSpace, next, nextSuffixSpace, endPrefixSpace, end);
527527
}
528528

529529
private static final String QUALIFIED_NAME_SEPARATORS = ".$";

src/test/java/spoon/test/template/testclasses/replace/ElementPrinterHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import spoon.reflect.visitor.ListPrinter;
44

55
public class ElementPrinterHelper {
6-
public ListPrinter createListPrinter(boolean startPrefixSpace, String start, boolean startSufficSpace, boolean nextPrefixSpace, String next, boolean nextSuffixSpace, boolean endPrefixSpace, String end) {
6+
public ListPrinter createListPrinter(boolean startPrefixSpace, String start, boolean startSuffixSpace, boolean nextPrefixSpace, String next, boolean nextSuffixSpace, boolean endPrefixSpace, String end) {
77
return null;
88
}
99
}

src/test/java/spoon/test/template/testclasses/replace/NewPattern.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@
1212
public class NewPattern {
1313

1414
/**
15-
* The body of this method contains a model of transformed code
15+
* The body of this method contains a model of transformed code
1616
*/
1717
private void patternModel(OldPattern.Parameters params) throws Exception {
18-
elementPrinterHelper.printList(params.getIterable.S(),
19-
params.startPrefixSpace,
20-
params.start,
21-
params.startSuffixSpace,
22-
params.nextPrefixSpace,
23-
params.next,
24-
params.nextSuffixSpace,
25-
params.endPrefixSpace,
18+
elementPrinterHelper.printList(params.getIterable.S(),
19+
params.startPrefixSpace,
20+
params.start,
21+
params.startSuffixSpace,
22+
params.nextPrefixSpace,
23+
params.next,
24+
params.nextSuffixSpace,
25+
params.endPrefixSpace,
2626
params.end,
2727
v -> {
2828
params.statements.S();
2929
});
3030
}
31-
31+
3232
/**
3333
* Creates a Pattern for this model
3434
*/
@@ -41,22 +41,22 @@ public static Pattern createPatternFromNewPattern(Factory factory) {
4141
})
4242
.build();
4343
}
44-
44+
4545
/*
4646
* Helper type members
4747
*/
48-
48+
4949
private ElementPrinterHelper elementPrinterHelper;
50-
50+
5151
interface Entity {
5252
Iterable<Item> $getItems$();
5353
}
54-
54+
5555
interface ElementPrinterHelper {
56-
void printList(Iterable<Item> $getItems$,
57-
boolean startPrefixSpace, String start, boolean startSufficSpace,
58-
boolean nextPrefixSpace, String next, boolean nextSuffixSpace,
59-
boolean endPrefixSpace, String end,
56+
void printList(Iterable<Item> $getItems$,
57+
boolean startPrefixSpace, String start, boolean startSuffixSpace,
58+
boolean nextPrefixSpace, String next, boolean nextSuffixSpace,
59+
boolean endPrefixSpace, String end,
6060
Consumer<Item> consumer);
6161
}
6262
}

0 commit comments

Comments
 (0)