mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Use string.repeat()
See gh-39259
This commit is contained in:
parent
ddb769bf7f
commit
fe38cb3b4a
@ -168,9 +168,7 @@ class ZipStringTests {
|
||||
@Test
|
||||
void zipStringWhenMultiCodePointAtBufferBoundary() throws Exception {
|
||||
StringBuilder source = new StringBuilder();
|
||||
for (int i = 0; i < ZipString.BUFFER_SIZE - 1; i++) {
|
||||
source.append("A");
|
||||
}
|
||||
source.append("A".repeat(ZipString.BUFFER_SIZE - 1));
|
||||
source.append("\u1EFF");
|
||||
String charSequence = source.toString();
|
||||
source.append("suffix");
|
||||
|
Loading…
Reference in New Issue
Block a user