< prev index next >

src/java.desktop/share/classes/sun/swing/SwingUtilities2.java

Print this page

        

@@ -1458,11 +1458,11 @@
      * Returns true if the given event is corrent gesture for
      * accessing clipboard
      *
      * @param ie InputEvent to check
      */
-
+    @SuppressWarnings("deprecation")
     private static boolean isAccessClipboardGesture(InputEvent ie) {
         boolean allowedGesture = false;
         if (ie instanceof KeyEvent) { //we can validate only keyboard gestures
             KeyEvent ke = (KeyEvent)ie;
             int keyCode = ke.getKeyCode();

@@ -2127,10 +2127,11 @@
             }
         }
         return -1;
     }
 
+    @SuppressWarnings("deprecation")
     public static int getSystemMnemonicKeyMask() {
         Toolkit toolkit = Toolkit.getDefaultToolkit();
         if (toolkit instanceof SunToolkit) {
             return ((SunToolkit) toolkit).getFocusAcceleratorKeyMask();
         }
< prev index next >