Polish "Use String.repeat() where feasible"

See gh-31916
This commit is contained in:
Stéphane Nicoll 2023-12-28 12:51:42 +01:00
parent dee1b726f9
commit 9d31537ae5
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -162,7 +162,8 @@ public class ProtobufDecoderTests extends AbstractDecoderTests<ProtobufDecoder>
@SuppressWarnings("deprecation")
public void decodeSplitMessageSize() {
this.decoder.setMaxMessageSize(100009);
Msg bigMessage = Msg.newBuilder().setFoo("azertyuiop".repeat(10000)).setBlah(secondMsg2).build();
Msg bigMessage = Msg.newBuilder().setFoo("azertyuiop".repeat(10000))
.setBlah(secondMsg2).build();
Flux<DataBuffer> input = Flux.just(bigMessage, bigMessage)
.flatMap(msg -> Mono.defer(() -> {