< prev index next >

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

Print this page

    @@ -36,21 +36,21 @@

             static final String COF_SCHEMA_LOCATION = "http://hestia.sfbay.sun.com/projects/COF/2003/2_0_2/Schema/COF2_0_2.xsd";

             static final String VERSION = "2.0.2";

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

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

             static String xmlTagName;

             private static final String XSI_NS = "http://www.w3.org/2001/XMLSchema-instance";

             static {
    -                xmlElements = new LinkedHashMap();
    -                xmlAttributes = new LinkedHashMap();
    +                xmlElements = new LinkedHashMap<>();
    +                xmlAttributes = new LinkedHashMap<>();
                     xmlElements.put("date", "date");
                     xmlElements.put("version", "version");
                     xmlElements.put("environments", "environments");
                     xmlElements.put("swentities", "swentities");
                     xmlElements.put("applications", "applications");

    @@ -71,11 +71,11 @@

             //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
             protected COFReportAnnotations annotations;

             //    @XmlAnyElement
    -        protected List/*<Element>*/any;
    +        protected List<COFItem>any;

             //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
             protected COFApplications applications;

             //  @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true, type = String.class)

    @@ -175,13 +175,13 @@
              * Objects of the following type(s) are allowed in the list
              * {@link Element }
              *
              *
              */
    -        public List/*<Element>*/getAny() {
    +        public List<COFItem>getAny() {
                     if (any == null) {
    -                        any = new ArrayList/*<Element>*/();
    +                        any = new ArrayList<>();
                     }
                     return this.any;
             }

             /**

    @@ -234,15 +234,15 @@
              */
             public String getHarness() {
                     return harness;
             }

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

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

             String getItemTagName() {
                     return xmlTagName;

< prev index next >