On Mon, 9 Mar 2026 20:25:38 GMT, Damon Nguyen <[email protected]> wrote:

>> test/jdk/java/awt/TextComponent/CorrectTextComponentSelectionTest.java line 
>> 76:
>> 
>>> 74:         // cover the components by the selection completely
>>> 75:         String sf = " ".repeat(50);
>>> 76:         tf.setText(sf);
>> 
>> Suggestion:
>> 
>>         tf.setText(" ".repeat(50));
>> 
>> You can simplify it further.
>
> Thanks!

I applied the same logic to the textarea as well.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/30058#discussion_r2907764651

Reply via email to