jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/CInputMethod.java
changeset 28235 0dfebfcb9f8a
parent 25859 3317bb8137f4
child 30469 bac0a7ff7e1e
equal deleted inserted replaced
28234:f694f2576719 28235:0dfebfcb9f8a
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   383         return null;
   383         return null;
   384     }
   384     }
   385 
   385 
   386     // java.awt.Toolkit#getNativeContainer() is not available
   386     // java.awt.Toolkit#getNativeContainer() is not available
   387     //    from this package
   387     //    from this package
       
   388     @SuppressWarnings("deprecation")
   388     private LWComponentPeer<?, ?> getNearestNativePeer(Component comp) {
   389     private LWComponentPeer<?, ?> getNearestNativePeer(Component comp) {
   389         if (comp==null)
   390         if (comp==null)
   390             return null;
   391             return null;
   391 
   392 
   392         ComponentPeer peer = comp.getPeer();
   393         ComponentPeer peer = comp.getPeer();