From 9d31537ae510b873d6d981cfa475985403c3d4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Thu, 28 Dec 2023 12:51:42 +0100 Subject: [PATCH] Polish "Use String.repeat() where feasible" See gh-31916 --- .../http/codec/protobuf/ProtobufDecoderTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-web/src/test/java/org/springframework/http/codec/protobuf/ProtobufDecoderTests.java b/spring-web/src/test/java/org/springframework/http/codec/protobuf/ProtobufDecoderTests.java index 694fd9f1c7..b0dfe9d8b6 100644 --- a/spring-web/src/test/java/org/springframework/http/codec/protobuf/ProtobufDecoderTests.java +++ b/spring-web/src/test/java/org/springframework/http/codec/protobuf/ProtobufDecoderTests.java @@ -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 @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 input = Flux.just(bigMessage, bigMessage) .flatMap(msg -> Mono.defer(() -> {