> I checked the `java.base` module, and all the `Collection#toArray()` method > of collections be implemented correctly. > > Their return values can be trusted, so many unnecessary array duplication can > be eliminated.
Glavo has updated the pull request incrementally with one additional commit since the last revision: Add trusted collection list ------------- Changes: - all: https://git.openjdk.org/jdk/pull/12212/files - new: https://git.openjdk.org/jdk/pull/12212/files/aecd79ff..8c2caca6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=12212&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12212&range=01-02 Stats: 61 lines in 1 file changed: 56 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/12212.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12212/head:pull/12212 PR: https://git.openjdk.org/jdk/pull/12212