< prev index next >

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

Print this page

    @@ -88,26 +88,26 @@
      "description"
      })*/
     public class COFTestCase extends COFItem {
             static long count = 0;

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

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

             static String xmlTagName;

             static {
                     xmlTagName = "testcase";
    -                xmlElements = new LinkedHashMap();
    +                xmlElements = new LinkedHashMap<>();
                     xmlElements.put("name", "name");
                     xmlElements.put("status", "status");
                     xmlElements.put("starttime", "starttime");
                     xmlElements.put("endtime", "endtime");
                     xmlElements.put("attributes", "attributes");
                     xmlElements.put("description", "description");
    -                xmlAttributes = new LinkedHashMap();
    +                xmlAttributes = new LinkedHashMap<>();
                     xmlAttributes.put("id", "id");
     //              xmlAttributes.put("analysis", "analysis");
             }

             //    @XmlAttribute

    @@ -200,15 +200,15 @@
              */
             public String getId() {
                     return name + ":" + idNum;
             }

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

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

             String getItemTagName() {
                     return xmlTagName;

< prev index next >