java - XJC non-transient non-serializable instance field data -


after generating java classes received:

public class myclass {  @xmlelement(name = "data", required = true) @xmlschematype(name = "date") protected xmlgregoriancalendar data; @xmlelement(name = "time", required = true) protected xmlgregoriancalendar time; ......... 

findbugs warns myclass defines non-transient non-serializable instance field data. warning acceptable or need fix? thanks.

it's fine ignore warning, these special classes designed different serialization method (xml). might set findbugs ignore entire generated package.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -