/** * Creates a new instance of <code>AnnotationStream</code>. */ public AnnotationStream() { super(); alias("annotation", FileAnnotation.class); alias("hudson.plugins.tasks.util.model.LineRange", LineRange.class); alias("range", LineRange.class); registerConverter(new HeapSpaceStringConverter(), HIGH_PRIORITY); registerConverter(new Priority.PriorityConverter(), HIGH_PRIORITY); addImmutableType(Priority.class); } }
/** * Returns the {@link XStream} to use. * * @return the annotation stream to use */ private XStream getXStream() { AnnotationStream xstream = new AnnotationStream(); configure(xstream); return xstream; }
/** * Returns the {@link XStream} to use. * * @return the annotation stream to use */ private XStream getXStream() { AnnotationStream xstream = new AnnotationStream(); configure(xstream); return xstream; }
/** * Creates a new instance of <code>AnnotationStream</code>. */ public AnnotationStream() { super(); alias("annotation", FileAnnotation.class); alias("hudson.plugins.tasks.util.model.LineRange", LineRange.class); alias("range", LineRange.class); registerConverter(new HeapSpaceStringConverter(), HIGH_PRIORITY); registerConverter(new Priority.PriorityConverter(), HIGH_PRIORITY); addImmutableType(Priority.class); } }