diff --git a/redis-om-spring/src/main/java/com/redis/om/spring/serialization/gson/ReferenceDeserializer.java b/redis-om-spring/src/main/java/com/redis/om/spring/serialization/gson/ReferenceDeserializer.java index 61c1eb26..4fa97139 100644 --- a/redis-om-spring/src/main/java/com/redis/om/spring/serialization/gson/ReferenceDeserializer.java +++ b/redis-om-spring/src/main/java/com/redis/om/spring/serialization/gson/ReferenceDeserializer.java @@ -110,7 +110,7 @@ public Object deserialize(JsonElement json, Type typeOfT, JsonDeserializationCon return reference; } - public Collection instantiateCollection(Type type) { + private Collection instantiateCollection(Type type) { Class rawType = (Class) ((ParameterizedType) type).getRawType(); if (rawType.isInterface()) { if (List.class.isAssignableFrom(rawType)) {