< prev index next >

## src/com/sun/javatest/cof/COFReportAnnotations.java

Print this page

    @@ -52,23 +52,23 @@
     @XmlType(name = "ReportAnnotations", propOrder = {
         "annotation"
     })*/
     public class COFReportAnnotations extends COFItem{

    -static LinkedHashMap xmlAttributes;
    -    static LinkedHashMap xmlElements;
    +static LinkedHashMap<String, String> xmlAttributes;
    +    static LinkedHashMap<String, String> xmlElements;

             static String xmlTagName;

             static {
    -                xmlElements = new LinkedHashMap();
    +                xmlElements = new LinkedHashMap<>();
                     xmlElements.put("annotation","annotation");
                     xmlTagName = "annotations";
             }

             //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
    -    protected List/*<COFReportAnnotation>*/ annotation;
    +    protected List<COFReportAnnotation> annotation;

             /**
          * Gets the value of the annotation property.
          *
          * <p>

    @@ -88,22 +88,22 @@
          * Objects of the following type(s) are allowed in the list
          * {@link COFReportAnnotation }
          *
          *
          */
    -    public List/*<COFReportAnnotation>*/ getAnnotation() {
    +    public List<COFReportAnnotation> getAnnotation() {
             if (annotation == null) {
    -            annotation = new ArrayList/*<COFReportAnnotation>*/();
    +            annotation = new ArrayList<>();
             }
             return this.annotation;
         }

    -        LinkedHashMap getItemAttributes() {
    +        LinkedHashMap<String, String> getItemAttributes() {
                     return xmlAttributes;
             }

    -    LinkedHashMap getItemElements() {
    +    LinkedHashMap<String, String> getItemElements() {
                     return xmlElements;
             }

             String getItemTagName() {
                     return xmlTagName;

< prev index next >