< prev index next >

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

Print this page

    @@ -52,30 +52,30 @@
     @XmlType(name = "SWEntities", propOrder = {
         "swentity"
     })*/
     public class COFSWEntities extends COFItem {

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

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

             static String xmlTagName;

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

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

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

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

    @@ -100,13 +100,13 @@
          * Objects of the following type(s) are allowed in the list
          * {@link COFSWEntity }
          *
          *
          */
    -    public List/*<SWEntity>*/ getSwentity() {
    +    public List<COFSWEntity> getSwentity() {
             if (swentity == null) {
    -            swentity = new ArrayList/*<SWEntity>*/();
    +            swentity = new ArrayList<>();
             }
             return this.swentity;
         }

     }

< prev index next >