Merge branch '3.2.x'

Closes gh-40499
This commit is contained in:
Moritz Halbritter 2024-04-24 14:04:17 +02:00
commit 126927f462
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ class MavenBuildOutputTimestamp {
.truncatedTo(ChronoUnit.SECONDS)
.toInstant();
if (instant.isBefore(DATE_MIN) || instant.isAfter(DATE_MAX)) {
throw new IllegalArgumentException(String
.format(String.format("'%s' is not within the valid range %s to %s", instant, DATE_MIN, DATE_MAX)));
throw new IllegalArgumentException(
String.format("'%s' is not within the valid range %s to %s", instant, DATE_MIN, DATE_MAX));
}
return instant;
}