Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
stringRepeat
/
beforeRepeatField.java
blob: 9da4b5b83f22c72c3d993085550fe3dda0866668 [
file
]
// "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
;
}
}
}