Skip to content

Commit

Permalink
add original forPattern method to preserve interface.
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Nov 13, 2023
1 parent 8dba706 commit 5599d3e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ default String formatMillis(long millis) {
*/
DateMathParser toDateMathParser();

static DateFormatter forPattern(String input, String printPattern, Boolean canCacheFormatter) {
return forPattern(input, printPattern, canCacheFormatter, Version.CURRENT);
}

static DateFormatter forPattern(String input, String printPattern, Boolean canCacheFormatter, final Version supportedVersion) {

if (Strings.hasLength(input) == false) {
Expand Down

0 comments on commit 5599d3e

Please sign in to comment.