langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/LayoutParser.java
changeset 1789 7ac8c0815000
parent 1264 076a3cde30d5
child 5520 86e4b9a9da40
equal deleted inserted replaced
1788:ced0a1a7ec80 1789:7ac8c0815000
    76     /**
    76     /**
    77      * Parse the XML specifying the layout of the documentation.
    77      * Parse the XML specifying the layout of the documentation.
    78      *
    78      *
    79      * @return List the list of XML elements parsed.
    79      * @return List the list of XML elements parsed.
    80      */
    80      */
    81     public List parseXML(String root) {
    81     public List<?> parseXML(String root) {
    82         if (xmlElementsMap.containsKey(root)) {
    82         if (xmlElementsMap.containsKey(root)) {
    83             return (List) xmlElementsMap.get(root);
    83             return xmlElementsMap.get(root);
    84         }
    84         }
    85         try {
    85         try {
    86             List<Object> xmlElements = new ArrayList<Object>();
    86             List<Object> xmlElements = new ArrayList<Object>();
    87             xmlElementsMap.put(root, xmlElements);
    87             xmlElementsMap.put(root, xmlElements);
    88             currentRoot = root;
    88             currentRoot = root;