8223237: Replace use of string.equals("") with isEmpty() in java.desktop

Reviewed-by: prr
This commit is contained in:
Sergey Bylokhov 2019-05-07 18:18:54 -07:00
parent 1b03f22dff
commit 133a7aefc1
60 changed files with 155 additions and 155 deletions

View file

@ -645,7 +645,7 @@ public abstract class SunFontManager implements FontSupport, FontManagerForSGE {
String fontName = f.fullName;
String familyName = f.familyName;
if (fontName == null || "".equals(fontName)) {
if (fontName == null || fontName.isEmpty()) {
return null;
}
if (compositeFonts.containsKey(fontName)) {