@Override @SuppressWarnings({"rawtypes", "unchecked"}) protected void addCurrentElementToCollection(HierarchicalStreamReader reader, UnmarshallingContext context, Collection collection, Collection target) { Object item = readItem( reader, context, collection ); if ( item instanceof DSLVariableValue ) { target.add( item ); } else if ( item instanceof String ) { //The only other possible legacy type is a String, so using toString() should be OK DSLVariableValue value = new DSLVariableValue( item.toString() ); target.add( value ); } }
new DSLVariableValuesConverter( this.xt.getMapper() ) );
new DSLVariableValuesConverter( this.xt.getMapper() ) );
@Override @SuppressWarnings({"rawtypes", "unchecked"}) protected void addCurrentElementToCollection(HierarchicalStreamReader reader, UnmarshallingContext context, Collection collection, Collection target) { Object item = readItem( reader, context, collection ); if ( item instanceof DSLVariableValue ) { target.add( item ); } else if ( item instanceof String ) { //The only other possible legacy type is a String, so using toString() should be OK DSLVariableValue value = new DSLVariableValue( item.toString() ); target.add( value ); } }