mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8335252: Reduce size of j.u.Formatter.Conversion#isValid
Reviewed-by: redestad
This commit is contained in:
parent
166f9d9ac0
commit
5d866bf17d
1 changed files with 3 additions and 3 deletions
|
@ -4967,9 +4967,9 @@ public final class Formatter implements Closeable, Flushable {
|
|||
DECIMAL_FLOAT,
|
||||
HEXADECIMAL_FLOAT,
|
||||
HEXADECIMAL_FLOAT_UPPER,
|
||||
LINE_SEPARATOR,
|
||||
PERCENT_SIGN -> true;
|
||||
default -> false;
|
||||
LINE_SEPARATOR -> true;
|
||||
// Don't put PERCENT_SIGN inside switch, as that will make the method size exceed 325 and cannot be inlined.
|
||||
default -> c == PERCENT_SIGN;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue