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

@ -207,7 +207,7 @@ public class PrintServiceLookupProvider extends PrintServiceLookup {
public synchronized PrintService getPrintServiceByName(String name) {
if (name == null || name.equals("")) {
if (name == null || name.isEmpty()) {
return null;
} else {
/* getPrintServices() is now very fast. */