// "Replace with 'StringBuilder.repeat()'" "true" class Test { public int pendingSpaces; String testRepeat(StringBuilder buffer) { if (pendingSpaces > 0) { for (int sp = 0; sp < pendingSpaces; sp++) buffer.append(' '); pendingSpaces = 0; } } }