File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
test/jdk/javax/swing/ImageIcon Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments