keycloak-memoizeit

removed mistakenly additions

1/28/2020 2:30:36 AM

Details

diff --git a/core/src/main/java/org/keycloak/util/JsonSerialization.java b/core/src/main/java/org/keycloak/util/JsonSerialization.java
index bf4b9da..b9be097 100755
--- a/core/src/main/java/org/keycloak/util/JsonSerialization.java
+++ b/core/src/main/java/org/keycloak/util/JsonSerialization.java
@@ -67,32 +67,20 @@ public class JsonSerialization {
         return mapper.writeValueAsBytes(obj);
     }
 
-// public static MultiCache<Parameters, Object> readValue1 = new MultiCache<>("Jsonser.readValue1");
-
     public static <T> T readValue(byte[] bytes, Class<T> type) throws IOException {
-// return readValue1.computeIfAbsent(new Parameters(bytes, type),  () -> {
         return mapper.readValue(bytes, type);
-// }, 120000);
     }
 
-// public static MultiCache<Parameters, Object> readValue2 = new MultiCache<>("Jsonser.readValue2");
-
     public static <T> T readValue(String bytes, Class<T> type) throws IOException {
-// return readValue2.computeIfAbsent(new Parameters(bytes, type),  () -> {
         return mapper.readValue(bytes, type);
-// }, 120000);
     }
 
     public static <T> T readValue(InputStream bytes, Class<T> type) throws IOException {
         return readValue(bytes, type, false);
     }
 
-// public static MultiCache<Parameters, Object> readValue4 = new MultiCache<>("Jsonser.readValue4");
-
     public static <T> T readValue(String string, TypeReference<T> type) throws IOException {
-// return readValue4.computeIfAbsent(new Parameters(string, type),  () -> {
         return mapper.readValue(string, type);
-// }, 120000);
     }
 
     public static <T> T readValue(InputStream bytes, TypeReference<T> type) throws IOException {