< prev index next >

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

Print this page

    @@ -61,30 +61,30 @@
     @XmlType(name = "TestCases", propOrder = {
         "testcase"
     })*/
     public class COFTestCases extends COFItem{

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

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

             static String xmlTagName;

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

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

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

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

             String getItemTagName() {

    @@ -111,13 +111,13 @@
          * Objects of the following type(s) are allowed in the list
          * {@link COFTestCase }
          *
          *
          */
    -    public List/*<COFTestCase>*/ getTestcase() {
    +    public List<COFTestCase> getTestcase() {
             if (testcase == null) {
    -            testcase = new ArrayList/*<COFTestCase>*/();
    +            testcase = new ArrayList<>();
             }
             return this.testcase;
         }

             /* (non-Javadoc)

< prev index next >