RFR: 8197594 - String and character repeat

Jim Laskey james.laskey at oracle.com
Fri Feb 16 13:10:34 UTC 2018


We’re going with the one instance method (Louis clinched it.) with recommended enhancements and not touching CharSequence.

Working it up now.

— Jim

> On Feb 16, 2018, at 7:46 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> On 15/02/2018 17:20, Jim Laskey wrote:
>> This is a pre-CSR code review [1] for String repeat methods (Enhancement).
>> 
>> The proposal is to introduce four new methods;
>> 
>> 1. public String repeat(final int count)
>> 2. public static String repeat(final char ch, final int count)
>> 3. public static String repeat(final int codepoint, final int count)
>> 4. public static String repeat(final CharSequence seq, final int count)
>> 
> Just catching up on this thread and it's hard to see where the bidding is currently at. Are you planning to send an updated proposal, a list of methods is fine, even if it's just one, is okay (implementation can follow later).
> 
> -Alan
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



More information about the core-libs-dev mailing list