Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v4]

2021-10-12 Thread Pavel Rappo
On Sat, 25 Sep 2021 11:23:18 GMT, Andrey Turbanov wrote: >> Collections.sort is just a wrapper, so it is better to use an instance >> method directly. >> Affected modules: jdk.javadoc, jdk.jcmd, jdk.jconsole > > Andrey Turbanov has updated the pull request incrementally with one > additional co

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v4]

2021-10-12 Thread Pavel Rappo
On Sat, 25 Sep 2021 11:23:18 GMT, Andrey Turbanov wrote: >> Collections.sort is just a wrapper, so it is better to use an instance >> method directly. >> Affected modules: jdk.javadoc, jdk.jcmd, jdk.jconsole > > Andrey Turbanov has updated the pull request incrementally with one > additional co

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v4]

2021-09-25 Thread Andrey Turbanov
> Collections.sort is just a wrapper, so it is better to use an instance method > directly. Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules extrac

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v3]

2021-09-25 Thread Andrey Turbanov
On Sat, 25 Sep 2021 11:15:20 GMT, Andrey Turbanov wrote: >> Collections.sort is just a wrapper, so it is better to use an instance >> method directly. > > Andrey Turbanov has updated the pull request incrementally with one > additional commit since the last revision: > >8272992: Replace u

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v2]

2021-09-25 Thread Andrey Turbanov
On Tue, 14 Sep 2021 07:46:12 GMT, Andrey Turbanov wrote: >> Collections.sort is just a wrapper, so it is better to use an instance >> method directly. > > Andrey Turbanov has updated the pull request incrementally with one > additional commit since the last revision: > > 8272992: Replace us

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v3]

2021-09-25 Thread Andrey Turbanov
> Collections.sort is just a wrapper, so it is better to use an instance method > directly. Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules extr

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v2]

2021-09-20 Thread Jonathan Gibbons
On Tue, 14 Sep 2021 07:46:12 GMT, Andrey Turbanov wrote: >> Collections.sort is just a wrapper, so it is better to use an instance >> method directly. > > Andrey Turbanov has updated the pull request incrementally with one > additional commit since the last revision: > > 8272992: Replace us

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v2]

2021-09-15 Thread Andrey Turbanov
On Tue, 14 Sep 2021 19:02:10 GMT, Chris Plummer wrote: >Make sure you run the tests in test/hotspot/jtreg/serviceability/sa/ and >test/jdk/sun/tools/jhsdb/ Checked. All fine: == Test summary == TEST

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v2]

2021-09-14 Thread Chris Plummer
On Tue, 14 Sep 2021 07:46:12 GMT, Andrey Turbanov wrote: >> Collections.sort is just a wrapper, so it is better to use an instance >> method directly. > > Andrey Turbanov has updated the pull request incrementally with one > additional commit since the last revision: > > 8272992: Replace us

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v2]

2021-09-14 Thread Andrey Turbanov
On Mon, 13 Sep 2021 17:58:02 GMT, Rémi Forax wrote: >> Andrey Turbanov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8272992: Replace usages of Collections.sort with List.sort call in jdk.* >> modules > > src/jdk.jfr/share/classes/jdk

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v2]

2021-09-14 Thread Andrey Turbanov
> Collections.sort is just a wrapper, so it is better to use an instance method > directly. Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules ---

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules [v2]

2021-09-14 Thread Andrey Turbanov
On Mon, 13 Sep 2021 22:11:24 GMT, liach wrote: >> src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/RepositoryFiles.java >> line 215: >> >>> 213: pathLookup.remove(remove); >>> 214: } >>> 215: added.sort((p1, p2) -> p1.compareTo(p2)); >> >> 'added.sor

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules

2021-09-13 Thread liach
On Mon, 13 Sep 2021 17:56:14 GMT, Rémi Forax wrote: >> Collections.sort is just a wrapper, so it is better to use an instance >> method directly. > > src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/RepositoryFiles.java line > 215: > >> 213: pathLookup.remove(remove); >> 214

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules

2021-09-13 Thread Rémi Forax
On Mon, 23 Aug 2021 21:08:05 GMT, Andrey Turbanov wrote: > Collections.sort is just a wrapper, so it is better to use an instance method > directly. src/jdk.jfr/share/classes/jdk/jfr/internal/MetadataReader.java line 86: > 84: if (Logger.shouldLog(LogTag.JFR_SYSTEM_PARSER, LogLevel.TR

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules

2021-09-13 Thread Andrey Turbanov
On Mon, 23 Aug 2021 21:08:05 GMT, Andrey Turbanov wrote: > Collections.sort is just a wrapper, so it is better to use an instance method > directly. Yeah. I think it's better to leave it to another PR/issue. To make this easier to review/validate. - PR: https://git.openjdk.java.

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules

2021-09-13 Thread Paul Sandoz
On Mon, 23 Aug 2021 21:08:05 GMT, Andrey Turbanov wrote: > Collections.sort is just a wrapper, so it is better to use an instance method > directly. This looks a good change. Either as part of this PR or as a follow up I think it is worth reviewing the comparators passed to the sort method.

Re: RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules

2021-09-13 Thread Сергей Цыпанов
On Mon, 23 Aug 2021 21:08:05 GMT, Andrey Turbanov wrote: > Collections.sort is just a wrapper, so it is better to use an instance method > directly. Marked as reviewed by stsypa...@github.com (no known OpenJDK username). - PR: https://git.openjdk.java.net/jdk/pull/5230

RFR: 8272992: Replace usages of Collections.sort with List.sort call in jdk.* modules

2021-08-25 Thread Andrey Turbanov
Collections.sort is just a wrapper, so it is better to use an instance method directly. - Commit messages: - [PATCH] Replace usages of Collections.sort with List.sort call in jdk.* modules Changes: https://git.openjdk.java.net/jdk/pull/5230/files Webrev: https://webrevs.openjdk.j