serialization - Java Serializable object contains non-Serializable fields -


i use findbugs in eclipse, , there tons of "troubling" warnings.
here sketch code:

public class serializableobject implements serializable {    private nonserializableobject nso;    .. setter, getter, else  } 

can cause troubles? or can ignore it? or should serialization everywhere touches?

it in jsf web project.

you have mark them transient

when declare field transient ignored during serialization , deserialization process. keep in mind when deserialize object transient field field's value it's default (usually null.)


Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -