jdk/src/java.desktop/windows/classes/sun/java2d/d3d/D3DScreenUpdateManager.java
changeset 28234 f694f2576719
parent 25859 3317bb8137f4
child 29922 7b9c1e1532cf
equal deleted inserted replaced
28233:9dc3764ed475 28234:f694f2576719
   521      * Returns true if the component has heavyweight children.
   521      * Returns true if the component has heavyweight children.
   522      *
   522      *
   523      * @param comp component to check for hw children
   523      * @param comp component to check for hw children
   524      * @return true if Component has heavyweight children
   524      * @return true if Component has heavyweight children
   525      */
   525      */
       
   526     @SuppressWarnings("deprecation")
   526     private static boolean hasHWChildren(Component comp) {
   527     private static boolean hasHWChildren(Component comp) {
   527         if (comp instanceof Container) {
   528         if (comp instanceof Container) {
   528             for (Component c : ((Container)comp).getComponents()) {
   529             for (Component c : ((Container)comp).getComponents()) {
   529                 if (c.getPeer() instanceof WComponentPeer || hasHWChildren(c)) {
   530                 if (c.getPeer() instanceof WComponentPeer || hasHWChildren(c)) {
   530                     return true;
   531                     return true;