Best practice for serialization for EJB and CDI beans

后端 未结 3 872
面向向阳花
面向向阳花 2021-02-01 18:03

I have not yet experienced any serialization-related issues. But PMD and Findbugs detect a bunch of potential problems regarding seriazation. A typical case is an injected logge

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 18:46

    PMD and FindBugs are only checking the interfaces and also have no information about the environment in which your code will be running. To quiet the tools, you could mark them as transient, but they'll all be properly re-injected upon deserialization and first use regardless of the transient keyword.

提交回复
热议问题