Files
openide/java/java-tests/testData/inspection/stringRepeat/afterRepeatField.java
T

11 lines
246 B
Java

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