mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-02 00:35:33 +07:00
12 lines
280 B
Java
12 lines
280 B
Java
// "Replace with 'String.repeat()'" "true"
|
|
class Test {
|
|
public int pendingSpaces;
|
|
|
|
String testRepeat(StringBuilder buffer) {
|
|
if (pendingSpaces > 0) {
|
|
fo<caret>r (int sp = 0; sp < pendingSpaces; sp++)
|
|
buffer.append(' ');
|
|
pendingSpaces = 0;
|
|
}
|
|
}
|
|
} |