提交 89e42e7e 编写于 作者: J jjg

8003649: regression/langtools: tools/javac/doctree

Reviewed-by: ksrini
上级 5fa0e12e
...@@ -176,6 +176,7 @@ public class DocCommentTester { ...@@ -176,6 +176,7 @@ public class DocCommentTester {
* Verify the structure of the DocTree AST by comparing it against golden text. * Verify the structure of the DocTree AST by comparing it against golden text.
*/ */
static class ASTChecker extends Checker { static class ASTChecker extends Checker {
static final String NEWLINE = System.getProperty("line.separator");
Printer printer = new Printer(); Printer printer = new Printer();
String source; String source;
...@@ -197,7 +198,7 @@ public class DocCommentTester { ...@@ -197,7 +198,7 @@ public class DocCommentTester {
DocCommentTree dc = trees.getDocCommentTree(path); DocCommentTree dc = trees.getDocCommentTree(path);
printer.print(dc, out); printer.print(dc, out);
out.flush(); out.flush();
String found = out.toString(); String found = out.toString().replace(NEWLINE, "\n");
// Look for the first block comment after the first occurrence of name // Look for the first block comment after the first occurrence of name
int start = source.indexOf("\n/*\n", findName(source, name)); int start = source.indexOf("\n/*\n", findName(source, name));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册