< prev index next >

src/java.desktop/share/classes/java/awt/Component.java

Print this page

        

@@ -4014,10 +4014,11 @@
          * @exception IllegalArgumentException if {@code numBuffers} is less than two,
          * or if {@code BufferCapabilities.isPageFlipping} is not
          * {@code true}.
          * @see #createBuffers(int, BufferCapabilities)
          */
+        @SuppressWarnings("deprecation")
         protected FlipBufferStrategy(int numBuffers, BufferCapabilities caps)
             throws AWTException
         {
             if (!(Component.this instanceof Window) &&
                 !(Component.this instanceof Canvas) &&

@@ -8131,10 +8132,11 @@
             focusLog.finer("returning result: " + res);
         }
         return res;
     }
 
+    @SuppressWarnings("deprecation")
     final Component getNextFocusCandidate() {
         Container rootAncestor = getTraversalRoot();
         Component comp = this;
         while (rootAncestor != null &&
                !(rootAncestor.isShowing() && rootAncestor.canBeFocusOwner()))
< prev index next >