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.java.net/?repo=jdk&pr=5230&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8272992 Stats: 57 lines in 22 files changed: 0 ins; 17 del; 40 mod Patch: https://git.openjdk.java.net/jdk/pull/5230.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5230/head:pull/5230 PR: https://git.openjdk.java.net/jdk/pull/5230