java - What are the best way to use a List on RuntimeExceptions? -
i have exception extends runtimeexception, , have attribute list.
public class experterbadrequestexception extends runtimeexception { private final list<string> errors; automatic evaluation tools sonar throw critical error: problem runtimeexceptions serializable, , list interface don't.
so should do? change list arraylist (don't believe that), should not use lists in case? make writeobject , readobject it? or maybe warning don't make sense?
the problem runtimeexceptions serializable, , list interface don't.
no, isn't problem. long it's initialised serializable implementation of list, such of in jdk, no problem @ all.
so should do?
nothing.
change list arraylist (don't believe that)
unnecessary.
should not use lists in case?
no, why?
make writeobject , readobject it?
unnecessary.
if experiencing problem, haven't stated is.
Comments
Post a Comment