src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/LayoutParser.java

changeset 184
905e151a185a
parent 117
24a47c3062fe
child 554
9d9f26857129
equal deleted inserted replaced
183:dbe9e82f9d25 184:905e151a185a
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;

mercurial