Chen Liang
Chen Liang
final更是为了安全,不然来个子类覆写charAt这些方法返回一些异常值,或者toCharArray返回子类可以保留引用的数组等等问题。反例是AbstractMap.SimpleImmutableEntry因为非final所以获得此对象后返回的key value不一定final;子类可以重新实现setValue getValue。
Does this intend to wait for openjdk/jdk#23395 or will it migrate from HTML after the taglet is available?
PreviewNote isn't merged yet; we can revisit this one once that taglet is available here.
We should document explicitly that all classes, including primitives and void, are considered identity when preview features are not enabled.
/csr Since this is an API addition, this will require a CSR; Valhalla folks can check if this API is future-proof in the CSR.
> According to https://wiki.openjdk.org/display/csr/CSR+FAQs, only changes to public and exported APIs in the `jdk.*`, `java.*`, and `javax.*` packages need a CSR. This PR changes public and exported APIs in the...
@stuart-marks Can you take a look at this?
@cushon Given we have specified in `Collection` that unmodifiability extends to all derived collection views: https://github.com/openjdk/jdk/blob/4c9a511f75174a3f3ae575fae2677c198c607b52/src/java.base/share/classes/java/util/Collection.java#L159-L160 Would you mind changing "Calling any mutator method on the Map will ..." to...
keep-alive while we evaluate the impact...