Java Serialization Problems, while using guava Lists.transform

前端 未结 3 1767
萌比男神i
萌比男神i 2021-02-09 19:59

I had to serialize a complex object, but one of its component was non-serializable ( a third party graph object), so I created a custom serializable version of this Graph class

3条回答
  •  悲&欢浪女
    2021-02-09 20:18

    If you attempted to serialize a list returned from Lists#transform, the interface List itself is not Serializable.

提交回复
热议问题