RFR: 8283706: Add final or sealed modifier to appropriate javax.swing API classes
Sergey Bylokhov
serb at openjdk.java.net
Wed Apr 6 20:17:40 UTC 2022
On Wed, 6 Apr 2022 05:42:08 GMT, Joe Darcy <darcy at 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
More information about the client-libs-dev
mailing list