Skip to content

Commit

Permalink
fix painless test failures
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 Aug 15, 2023
1 parent d509588 commit 19e283b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
import org.opensearch.common.hash.MessageDigests;

import java.nio.charset.StandardCharsets;
import java.time.DayOfWeek;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Base64;
import java.util.Collection;
Expand Down Expand Up @@ -721,4 +723,8 @@ public static Matcher matcher(Pattern receiver, int limitFactor, CharSequence in
}
return receiver.matcher(new LimitedCharSequence(input, receiver, limitFactor));
}

public static DayOfWeek getDayOfWeekEnum(ZonedDateTime receiver) {
return receiver.getDayOfWeek();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ class java.time.YearMonth {
class java.time.ZonedDateTime {
int getDayOfMonth()
DayOfWeek getDayOfWeek()
DayOfWeek org.opensearch.painless.api.Augmentation getDayOfWeekEnum()
int getDayOfYear()
int getHour()
LocalDate toLocalDate()
Expand Down

0 comments on commit 19e283b

Please sign in to comment.