RFR: 8283067: Incorrect comment in java.base/share/classes/java/util/ArrayList.java
xpbob
duke at openjdk.java.net
Sat Mar 12 09:57:08 UTC 2022
* Constructs an empty list with an initial capacity of ten
=>
* Constructs an empty list with default sized empty instances.
private static final Object[] DEFAULTCAPACITY_EMPTY_ELEMENTDATA = {};
DEFAULTCAPACITY_EMPTY_ELEMENTDATA is empty and the length is 0
-------------
Commit messages:
- 8283067: Incorrect comment in java.base/share/classes/java/util/ArrayList.java
Changes: https://git.openjdk.java.net/jdk/pull/7799/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7799&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8283067
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/7799.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/7799/head:pull/7799
PR: https://git.openjdk.java.net/jdk/pull/7799
More information about the core-libs-dev
mailing list