On Wed, 6 Apr 2022 05:25:43 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> Update Swing classes to use JEP 409 sealed and non-sealed modifiers and add >> the final modifier where appropriate. >> >> jtreg tests and JCK API tests pass >> >> CSR for review here : https://bugs.openjdk.java.net/browse/JDK-8284214 > > src/java.desktop/share/classes/javax/swing/GroupLayout.java line 2461: > >> 2459: */ >> 2460: public sealed class ParallelGroup extends Group >> 2461: permits BaselineGroup { > > The BaselineGroup class is private so not part of the public API, is it fine > to mention the non-public class in the permits block for the public class? Yes, that is fine; javadoc will filter out displaying non-public classes in a permits clause. ------------- PR: https://git.openjdk.java.net/jdk/pull/8082