mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8223237: Replace use of string.equals("") with isEmpty() in java.desktop
Reviewed-by: prr
This commit is contained in:
parent
1b03f22dff
commit
133a7aefc1
60 changed files with 155 additions and 155 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue