< prev index next >

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

Print this page

    @@ -53,24 +53,24 @@
      *
      *
      */
     public class COFEnvironments 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("environment", "environment");
             xmlTagName = "environments";
         }

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

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

    @@ -90,22 +90,22 @@
          * Objects of the following type(s) are allowed in the list
          * {@link Environment }
          *
          *
          */
    -    public List/*<Environment>*/ getEnvironment() {
    +    public List<COFEnvironment> getEnvironment() {
             if (environment == null) {
    -            environment = new ArrayList/*<Environment>*/();
    +            environment = new ArrayList<>();
             }
             return this.environment;
         }

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

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

         String getItemTagName() {

< prev index next >