Browse Source

Merge branch '3.2.x'

Closes gh-40499
pull/40524/head
Moritz Halbritter 2 years ago
parent
commit
126927f462
  1. 4
      spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/MavenBuildOutputTimestamp.java

4
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/MavenBuildOutputTimestamp.java

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

Loading…
Cancel
Save