Re: RFR: 8316187: Modernize an example in StringTokenizer [v2]

2023-09-15 Thread Naoto Sato
On Fri, 15 Sep 2023 18:06:10 GMT, Pavel Rappo wrote: >> This modernizes an example to use the extended for-statement introduced in >> JDK 1.5. >> >> I understand that StringTokenizer is a legacy class. But legacy or not, a >> class shouldn't promote older constructs when newer fit better. Espe

Re: RFR: 8316187: Modernize an example in StringTokenizer [v2]

2023-09-15 Thread Pavel Rappo
> This modernizes an example to use the extended for-statement introduced in > JDK 1.5. > > I understand that StringTokenizer is a legacy class. But legacy or not, a > class shouldn't promote older constructs when newer fit better. Especially > when advising on preferred alternatives to itself.