RFR: 8316056: Open source several Swing JTree tests [v2]
Damon Nguyen
dnguyen at openjdk.org
Mon Sep 18 19:09:45 UTC 2023
On Fri, 15 Sep 2023 23:12:32 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
>> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Review comments changes
>
> test/jdk/javax/swing/JTree/bug4213868.java line 44:
>
>> 42: JTree tree = new JTree(root);
>> 43: for (int i = 1; i < 10; i++) {
>> 44: root.add(new DefaultMutableTreeNode(Integer.valueOf(i)));
>
> Suggestion:
>
> new DefaultMutableTreeNode(0, true);
> JTree tree = new JTree(root);
> for (int i = 1; i < 10; i++) {
> root.add(new DefaultMutableTreeNode(i));
Changed to normal int. Thanks!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15756#discussion_r1329163553
More information about the client-libs-dev
mailing list