RFR: 8266666: Implementation for snippets [v7]

Jonathan Gibbons jjg at openjdk.java.net
Tue Aug 24 14:27:31 UTC 2021


On Tue, 24 Aug 2021 10:24:35 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

>> Since we are here, is there any langtools convention for when to collapse a span of single-import declarations into an import-on-demand (.*) declaration?
>
> Fixed in a7cd155.

> Since we are here, is there any langtools convention for when to collapse a span of single-import declarations into an import-on-demand (.*) declaration?

langtools does not use import-on-demand, and it is practice e to expand them to single imports if any creep into the code.   Also, imports are ordered with Java SE (`java.*` `javax.*`) imports first, before others.

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

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


More information about the javadoc-dev mailing list