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

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -1100,7 +1100,7 @@ public class SwingUtilities implements SwingConstants
* and use 0,0,0,0 for textR.
*/
boolean textIsEmpty = (text == null) || text.equals("");
boolean textIsEmpty = (text == null) || text.isEmpty();
int lsb = 0;
int rsb = 0;
/* Unless both text and icon are non-null, we effectively ignore