< prev index next >

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

Print this page

    @@ -67,33 +67,32 @@
         "name",
         "value"
     })*/
     public class COFReportAnnotation 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("name", "name");
                     xmlElements.put("value","value");
                     xmlTagName = "annotation";
             }
         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
    -//    protected List/*<String>*/ name;
    -    protected List/*<String>*/ name;
    +    protected List<String> name;

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

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

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

             String getItemTagName() {
                     return xmlTagName;

    @@ -119,13 +118,13 @@
          * Objects of the following type(s) are allowed in the list
          * {@link String }
          *
          *
          */
    -    public List/*<String>*/ getName() {
    +    public List<String> getName() {
             if (name == null) {
    -            name = new ArrayList/*<String>*/();
    +            name = new ArrayList<>();
             }
             return this.name;
         }

             /**

    @@ -148,13 +147,13 @@
          * Objects of the following type(s) are allowed in the list
          * {@link String }
          *
          *
          */
    -    public List/*<String>*/ getValue() {
    +    public List<String> getValue() {
             if (value == null) {
    -            value = new ArrayList/*<String>*/();
    +            value = new ArrayList<>();
             }
             return this.value;
         }

     }

< prev index next >