mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue