Skip to content

Commit

Permalink
Fix #1204: Version 1.4.2 does not run in JDK 11
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ committed Dec 12, 2023
1 parent 6435059 commit c40737a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.Assert;
import org.springframework.validation.annotation.Validated;

import javax.annotation.PostConstruct;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

Expand Down Expand Up @@ -660,6 +660,6 @@ public void setProximityCheckOtpLength(int proximityCheckOtpLength) {
@PostConstruct
void validate() {
Assert.state(proximityCheckOtpLength >= MINIMAL_PROXIMITY_CHECK_OTP_LENGTH,
"Proximity check OTP length %d is smaller then required minimal %d".formatted(proximityCheckOtpLength, MINIMAL_PROXIMITY_CHECK_OTP_LENGTH));
String.format("Proximity check OTP length %d is smaller then required minimal %d", proximityCheckOtpLength, MINIMAL_PROXIMITY_CHECK_OTP_LENGTH));
}
}

0 comments on commit c40737a

Please sign in to comment.