On Wed, 6 Apr 2022 05:42:08 GMT, Joe Darcy <da...@openjdk.org> wrote:
>> 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. Just to double-check, it is fine to have it in the output of the getPermittedSubclasses for the public class as well? ------------- PR: https://git.openjdk.java.net/jdk/pull/8082