< prev index next >

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

Print this page

    @@ -66,18 +66,18 @@
     static final String [] tags = {
             "name",
             "version",
             "arch"
         };
    -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<>();
             for (int i = 0;i<propOrder.length;i++) {
                 xmlElements.put(propOrder[i], tags[i]);
             }
             xmlTagName = "os";
             }

    @@ -101,14 +101,14 @@
          */
         public String getArch() {
             return arch;
         }

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

             String getItemTagName() {
                     return xmlTagName;

< prev index next >