equal
deleted
inserted
replaced
554 @Override |
554 @Override |
555 public Void visitLiteral(LiteralTree tree, Void ignore) { |
555 public Void visitLiteral(LiteralTree tree, Void ignore) { |
556 if (tree.getKind() == DocTree.Kind.CODE) { |
556 if (tree.getKind() == DocTree.Kind.CODE) { |
557 for (TagStackItem tsi: tagStack) { |
557 for (TagStackItem tsi: tagStack) { |
558 if (tsi.tag == HtmlTag.CODE) { |
558 if (tsi.tag == HtmlTag.CODE) { |
559 env.messages.warning(HTML, tree, "dc.tag.nested.not.allowed", "code"); |
559 env.messages.warning(HTML, tree, "dc.tag.code.within.code"); |
560 break; |
560 break; |
561 } |
561 } |
562 } |
562 } |
563 } |
563 } |
564 return super.visitLiteral(tree, ignore); |
564 return super.visitLiteral(tree, ignore); |