Skip to content

Commit 58db0d6

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent ed3583d commit 58db0d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x-pack/plugin/logsdb/src/test/java/org/elasticsearch/xpack/logsdb/patternedtext/PatternedTextVsMatchOnlyTextTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ private static String randomSeparator() {
260260
private static String randomTimestamp() {
261261
// The random millis are below year 10000 in UTC, but if the date is within 1 day of year 10000, the year can be 10000 in the
262262
// selected timezone. Since the date formatter cannot handle years greater than 9999, select another date.
263-
var zonedDateTime = randomValueOtherThanMany(t -> t.getYear() == 10000, () ->
264-
ZonedDateTime.ofInstant(Instant.ofEpochMilli(randomMillisUpToYear9999()), randomZone())
263+
var zonedDateTime = randomValueOtherThanMany(
264+
t -> t.getYear() == 10000,
265+
() -> ZonedDateTime.ofInstant(Instant.ofEpochMilli(randomMillisUpToYear9999()), randomZone())
265266
);
266267
DateFormatter formatter = DateFormatter.forPattern(randomDateFormatterPattern()).withLocale(randomLocale(random()));
267268
return formatter.format(zonedDateTime);

0 commit comments

Comments
 (0)