mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8003649: regression/langtools: tools/javac/doctree
Reviewed-by: ksrini
This commit is contained in:
parent
61235e9c09
commit
f0fe027b50
1 changed files with 2 additions and 1 deletions
|
@ -176,6 +176,7 @@ public class DocCommentTester {
|
|||
* Verify the structure of the DocTree AST by comparing it against golden text.
|
||||
*/
|
||||
static class ASTChecker extends Checker {
|
||||
static final String NEWLINE = System.getProperty("line.separator");
|
||||
Printer printer = new Printer();
|
||||
String source;
|
||||
|
||||
|
@ -197,7 +198,7 @@ public class DocCommentTester {
|
|||
DocCommentTree dc = trees.getDocCommentTree(path);
|
||||
printer.print(dc, out);
|
||||
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
|
||||
int start = source.indexOf("\n/*\n", findName(source, name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue