Is it possible to serialize anonymous class without outer class?

前端 未结 6 965
广开言路
广开言路 2021-02-06 03:45

I made a small research on web and reviewed related topics on this site, but the answers were contradictory: some people said it is not possible, others said it is possible, but

6条回答
  •  囚心锁ツ
    2021-02-06 04:26

    If you mad enough to do the trick you can use reflection to find field that contains reference to outer class and set it to null.

提交回复
热议问题