mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb
This commit is contained in:
parent
c998ead188
commit
a3df1d618e
155 changed files with 340 additions and 382 deletions
|
@ -1297,16 +1297,16 @@ public final class Scanner implements Iterator<String>, Closeable {
|
|||
nanString = "\\Q" + dfs.getNaN() + "\\E";
|
||||
infinityString = "\\Q" + dfs.getInfinity() + "\\E";
|
||||
positivePrefix = df.getPositivePrefix();
|
||||
if (positivePrefix.length() > 0)
|
||||
if (!positivePrefix.isEmpty())
|
||||
positivePrefix = "\\Q" + positivePrefix + "\\E";
|
||||
negativePrefix = df.getNegativePrefix();
|
||||
if (negativePrefix.length() > 0)
|
||||
if (!negativePrefix.isEmpty())
|
||||
negativePrefix = "\\Q" + negativePrefix + "\\E";
|
||||
positiveSuffix = df.getPositiveSuffix();
|
||||
if (positiveSuffix.length() > 0)
|
||||
if (!positiveSuffix.isEmpty())
|
||||
positiveSuffix = "\\Q" + positiveSuffix + "\\E";
|
||||
negativeSuffix = df.getNegativeSuffix();
|
||||
if (negativeSuffix.length() > 0)
|
||||
if (!negativeSuffix.isEmpty())
|
||||
negativeSuffix = "\\Q" + negativeSuffix + "\\E";
|
||||
|
||||
// Force rebuilding and recompilation of locale dependent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue