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 <[email protected]>
  • Loading branch information
nknize committed Nov 13, 2023
1 parent 2e9e1c6 commit 07b930e
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);

Check warning on line 141 in server/src/main/java/org/opensearch/common/time/DateFormatter.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/common/time/DateFormatter.java#L141

Added line #L141 was not covered by tests
}

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

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

0 comments on commit 07b930e

Please sign in to comment.