fix xstream not processing annotations during serialization of runs

was saving the sessionAttempts counter even though it had the
XStreamOmitField annotation. not technically a problem, but not correct
This commit is contained in:
Gered 2017-01-28 12:52:41 -05:00
parent 8679a556ca
commit 5e774934a4

View file

@ -421,6 +421,7 @@ final class Actions {
try {
XStream xml = new XStream( new DomDriver() );
SerializationUtils.customize(xml);
xml.autodetectAnnotations(true);
out = new BufferedOutputStream( new FileOutputStream( file ) );
xml.toXML( master.getRun(), out );
} catch ( Exception ex ) {