Protobuf support: Replace "java.util.ArrayList" with ArrayList.class.getName()

Signed-off-by: zhouzh_zzz <zhouzh_zzz@qq.com>
pull/5262/head
zhouzh_zzz 1 year ago
parent 2afb565f44
commit 02f897203a

@ -17,6 +17,8 @@ import org.redisson.client.protocol.Encoder;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
@ -68,9 +70,9 @@ public class ProtobufCodec extends BaseCodec {
protobufBlacklist = new HashSet<>();
protobufBlacklist.addAll(BasicSerializerFactoryConcreteGetter.getConcreteKeySet());
protobufBlacklist.add("java.util.ArrayList");
protobufBlacklist.add("java.util.HashSet");
protobufBlacklist.add("java.util.HashMap");
protobufBlacklist.add(ArrayList.class.getName());
protobufBlacklist.add(HashSet.class.getName());
protobufBlacklist.add(HashMap.class.getName());
}
public void addBlacklist(Class<?> clazz) {

Loading…
Cancel
Save