From 99b22bc32a1b212ae4024024ade6b22e02092273 Mon Sep 17 00:00:00 2001 From: Thomas Richner Date: Thu, 8 Feb 2024 16:14:44 +0100 Subject: [PATCH] ARC-1246: Fix sonar issue --- .../src/main/java/com/oviva/ehealthid/relyingparty/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ehealthid-rp/src/main/java/com/oviva/ehealthid/relyingparty/Main.java b/ehealthid-rp/src/main/java/com/oviva/ehealthid/relyingparty/Main.java index 4316622..af9df1a 100644 --- a/ehealthid-rp/src/main/java/com/oviva/ehealthid/relyingparty/Main.java +++ b/ehealthid-rp/src/main/java/com/oviva/ehealthid/relyingparty/Main.java @@ -133,7 +133,7 @@ private CodeRepo buildCodeRepo(CodeStoreConfig config) { private Cache buildCache(Duration ttl, int maxSize) { return Caffeine.newBuilder() - .expireAfter(new AfterCreatedExpiry(ttl.toNanos())) + .expireAfter(new AfterCreatedExpiry<>(ttl.toNanos())) .maximumSize(maxSize) .build(); }