<Swing Dev> RFR: 8252721: Nested classes in Swing APIs rely on default constructors [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Wed Sep 9 05:40:31 UTC 2020
On Wed, 9 Sep 2020 02:21:49 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Modify access modifier to protected for protected classes
>
> src/java.desktop/share/classes/javax/swing/Box.java line 436:
>
>> 434: * Constructs a {@code AccessibleBox}.
>> 435: */
>> 436: public AccessibleBox() {}
>
> Shouldn't this be a protected constructor?
> "if the class is declared protected, then the default constructor is implicitly given the access modifier protected".
Modified to "protected" constructor
-------------
PR: https://git.openjdk.java.net/jdk/pull/72
More information about the swing-dev
mailing list