Is there a way to check whether a type is serializ...
# serialization
d
Is there a way to check whether a type is serializable from inside an annotation processor? I'm writing a code generator using KSP and it would be nice to catch serialization-related problems in compile time. So far I'm able to check the type for annotations (looking for the
@Serializable
annotation). But what about primitives like
Int
and
String
? Surely there must be a better way than manually keeping a list of all natively serializable types, right?
👀 1
d
Yeah, I guess i'll stick with the list then...