7035495: javax.swing.ImageIcon spec should be clarified
authormalenkov
Mon, 14 Oct 2013 14:13:48 +0400
changeset 21257 57214b6e9c3e
parent 21256 dfb1f9090caa
child 21258 317e884625eb
7035495: javax.swing.ImageIcon spec should be clarified Reviewed-by: alexsch
jdk/src/share/classes/javax/swing/ImageIcon.java
--- a/jdk/src/share/classes/javax/swing/ImageIcon.java	Mon Oct 14 13:59:38 2013 +0400
+++ b/jdk/src/share/classes/javax/swing/ImageIcon.java	Mon Oct 14 14:13:48 2013 +0400
@@ -80,8 +80,20 @@
     ImageObserver imageObserver;
     String description = null;
 
-    // Fields for twisted backward compatibility only. DO NOT USE.
+    /**
+     * Do not use this shared component, which is used to track image loading.
+     * It is left for backward compatibility only.
+     * @deprecated since 1.8
+     */
+    @Deprecated
     protected final static Component component;
+
+    /**
+     * Do not use this shared media tracker, which is used to load images.
+     * It is left for backward compatibility only.
+     * @deprecated since 1.8
+     */
+    @Deprecated
     protected final static MediaTracker tracker;
 
     static {