@XStreamOmitField

Has anybody tried this annotation. I can't get it to work.

Despite some complaints from other people, official response on the problem - it work, there are unit tests... or can not reproduce...

 

Comments

did you call xstream.autodetectAnnotations(true) ?

yes it works check if you have
xstream.processAnnotations(XXX.class);
or you can also do it without an annotation, like:
xstream.omitField(XXX.class, "VAR_NAME");