src/share/classes/sun/awt/im/InputContext.java

Print this page

        

@@ -385,11 +385,11 @@
                 // new input method
                 ((InputMethodAdapter) previousInputMethod).stopListening();
             }
             previousInputMethod = null;
 
-            if (log.isLoggable(PlatformLogger.FINE)) {
+            if (log.isLoggable(PlatformLogger.Level.FINE)) {
                 log.fine("Current client component " + currentClientComponent);
             }
             if (inputMethod instanceof InputMethodAdapter) {
                 ((InputMethodAdapter) inputMethod).setClientComponent(currentClientComponent);
             }

@@ -885,11 +885,11 @@
         return inputMethodInstance;
     }
 
     private void logCreationFailed(Throwable throwable) {
         PlatformLogger logger = PlatformLogger.getLogger("sun.awt.im");
-        if (logger.isLoggable(PlatformLogger.CONFIG)) {
+        if (logger.isLoggable(PlatformLogger.Level.CONFIG)) {
             String errorTextFormat = Toolkit.getProperty("AWT.InputMethodCreationFailed",
                                                          "Could not create {0}. Reason: {1}");
             Object[] args =
                 {inputMethodLocator.getDescriptor().getInputMethodDisplayName(null, Locale.getDefault()),
                  throwable.getLocalizedMessage()};