< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalToolTipUI.java

Print this page

        

@@ -190,10 +190,11 @@
     // As MetalToolTipUI is shared between all JToolTips the tip field is
     // set appropriately before this is invoked. Unfortunately this means
     // that subclasses that randomly invoke this method will see varying
     // results. If this becomes an issue, MetalToolTipUI should no longer be
     // shared.
+    @SuppressWarnings("deprecation")
     public String getAcceleratorString() {
         if (tip == null || isAcceleratorHidden()) {
             return "";
         }
         JComponent comp = tip.getComponent();
< prev index next >