8230516: invalid html in jdwp-protocol.html
Reviewed-by: dtitov, sspitsyn
This commit is contained in:
parent
a4613d4a8f
commit
6794a68681
@ -55,8 +55,14 @@ class ConstantNode extends AbstractCommandNode {
|
||||
|
||||
void document(PrintWriter writer) {
|
||||
//Add anchor to each constant with format <constant table name>_<constant name>
|
||||
if (!(parent instanceof AbstractNamedNode)) {
|
||||
error("Parent must be ConstantSetNode, but it's " + parent.getClass().getSimpleName());
|
||||
}
|
||||
String tableName = ((AbstractNamedNode)parent).name;
|
||||
writer.println("<tr>"
|
||||
+ "<th scope=\"row\">" + name
|
||||
+ "<th scope=\"row\">"
|
||||
+ "<span id=\"" + tableName + "_" + name + "\"></span>"
|
||||
+ name
|
||||
+ "<td class=\"centered\">" + nameNode.value()
|
||||
+ "<td>" + comment() + " "
|
||||
+ "</tr>");
|
||||
|
@ -62,9 +62,7 @@ class ConstantSetNode extends AbstractNamedNode {
|
||||
writer.println("<th class=\"bold\" style=\"width: 65%\" scope=\"col\">Description");
|
||||
writer.println("</tr>");
|
||||
for (Node node : components) {
|
||||
ConstantNode n = (ConstantNode)node;
|
||||
writer.println("<span id=\"" + name + "_" + n.name + "\"></span>");
|
||||
n.document(writer);
|
||||
node.document(writer);
|
||||
}
|
||||
writer.println("</table>");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user