RFR: 8267329: Modernize Javadoc code to use instanceof with pattern matching [v3]

Jonathan Gibbons jjg at openjdk.java.net
Wed May 19 22:20:35 UTC 2021


On Wed, 19 May 2021 22:06:18 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> Unclear if there's a more succinct way to refactor this like so. If `c` is not an instance of `TextBuilder` then we need to initialize a new `TextBuilder` and add it to `contents`. This is not the case if `c` is already of the desired instance.
>
> Then just a shorter name than `txtBldr` please. Lvng t vwls s nt - jvdc cnvntn.

I guess we have competing demands for short names!

-------------

PR: https://git.openjdk.java.net/jdk/pull/4105


More information about the javadoc-dev mailing list