mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8324665: Loose matching of space separators in the lenient date/time parsing mode
Reviewed-by: joehw, jlu
This commit is contained in:
parent
2d252ee06e
commit
96eb0390d6
4 changed files with 177 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2024, 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
|
||||
|
@ -746,6 +746,10 @@ public abstract class DateFormat extends Format {
|
|||
* <p>This leniency value is overwritten by a call to {@link
|
||||
* #setCalendar(java.util.Calendar) setCalendar()}.
|
||||
*
|
||||
* @implSpec A {@link Character#SPACE_SEPARATOR SPACE_SEPARATOR} in the input
|
||||
* text will match any other {@link Character#SPACE_SEPARATOR SPACE_SEPARATOR}s
|
||||
* in the pattern with lenient parsing; otherwise, it will not match.
|
||||
*
|
||||
* @param lenient when {@code true}, parsing is lenient
|
||||
* @see java.util.Calendar#setLenient(boolean)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue