Skip to content

Commit

Permalink
Merge pull request #1205 from /issues/1204-fix-jdk11
Browse files Browse the repository at this point in the history
Fix #1204: Version 1.4.2 does not run in JDK 11
  • Loading branch information
banterCZ authored Dec 12, 2023
2 parents 4baeb1c + c40737a commit 55eb875
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 55eb875

Please sign in to comment.