< prev index next >

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

Print this page

    @@ -58,23 +58,23 @@
     @XmlType(name = "TestAttributes", propOrder = {
         "attribute"
     })*/
     public class COFTestAttributes extends COFItem{

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

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

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

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

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

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

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

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

< prev index next >