langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/LayoutParser.java
equal
deleted
inserted
replaced
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; |