Skip to content

Commit 8351145

Browse files
committed
Test fix
1 parent 3da6e02 commit 8351145

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/jdk/javax/swing/ImageIcon/ImageIconNullImageTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
/*
2525
* @test
2626
* @bug 8159055
27-
* @summary Verifies ImageIcon setImage and constructor handles null parameter
27+
* @summary Verifies ImageIcon.setImage and ImageIcon(Image) constructor
28+
* handles null parameter
2829
* @run main ImageIconNullImageTest
2930
*/
3031

@@ -39,14 +40,14 @@ public static void main(String[] args) throws Exception {
3940
}
4041

4142
private static void testImageIconNull() {
42-
// Setting null image shouldn't cause NPE
43+
// Passing null image shouldn't cause NPE
4344
new ImageIcon((Image) null);
4445
}
4546

4647
private static void testSetImageNull() {
4748
ImageIcon icon = new ImageIcon();
4849

49-
// Setting null image shouldn't cause NPE
50+
// Passing null image shouldn't cause NPE
5051
icon.setImage(null);
5152
}
5253
}

0 commit comments

Comments
 (0)