< prev index next >

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

Print this page

        

@@ -771,11 +771,11 @@
             inputMethodInfo = inputMethodLocator.getDescriptor().
                 getInputMethodDisplayName(getLocale(), SunToolkit.
                                           getStartupLocale());
         }
 
-        if (inputMethodInfo != null && !inputMethodInfo.equals("")) {
+        if (inputMethodInfo != null && !inputMethodInfo.isEmpty()) {
             return inputMethodInfo;
         }
 
         // do our best to return something useful.
         return inputMethod.toString() + "-" + inputMethod.getLocale().toString();
< prev index next >