< prev index next >
src/com/sun/jct/utils/indexgen/Main.java
Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg
*** 519,530 ****
htmlOut.println("<h1>Index</h1>");
}
char currLetter = 0;
! for (Iterator iter = root.iterator(); iter.hasNext(); ) {
! Node node = (Node) (iter.next());
String name = node.getName();
char initial = Character.toUpperCase(name.charAt(0));
if (Character.isLetter(initial) && initial != currLetter) {
for (char c = (currLetter == 0 ? 'A' : (char) (currLetter + 1));
c <= initial; c++) {
--- 519,530 ----
htmlOut.println("<h1>Index</h1>");
}
char currLetter = 0;
! for (Iterator<Node> iter = root.iterator(); iter.hasNext(); ) {
! Node node = (iter.next());
String name = node.getName();
char initial = Character.toUpperCase(name.charAt(0));
if (Character.isLetter(initial) && initial != currLetter) {
for (char c = (currLetter == 0 ? 'A' : (char) (currLetter + 1));
c <= initial; c++) {
*** 595,606 ****
}
xmlOut.println(node.getChildCount() == 0 ? "/>" : ">");
}
if (node.getChildCount() > 0) {
! for (Iterator iter = node.iterator(); iter.hasNext(); ) {
! Node child = (Node) (iter.next());
write(xmlOut, mapOut, htmlOut, child, depth + 1);
}
if (xmlOut != null)
xmlOut.println("</indexitem>");
--- 595,606 ----
}
xmlOut.println(node.getChildCount() == 0 ? "/>" : ">");
}
if (node.getChildCount() > 0) {
! for (Iterator<Node> iter = node.iterator(); iter.hasNext(); ) {
! Node child = (iter.next());
write(xmlOut, mapOut, htmlOut, child, depth + 1);
}
if (xmlOut != null)
xmlOut.println("</indexitem>");
< prev index next >