Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
stringRepeat
/
afterRepeatField.java
blob: 222faa7be80524ec49e1e2501bd5bd226cb1bdd7 [
file
]
// "Replace with 'String.repeat()'" "true"
class
Test
{
public
int
pendingSpaces
;
String
testRepeat
(
StringBuilder
buffer
)
{
if
(
pendingSpaces
>
0
)
{
buffer
.
append
(
" "
.
repeat
(
pendingSpaces
));
pendingSpaces
=
0
;
}
}
}