Skip to content

Commit 5a5b807

Browse files
author
Pavel Rappo
committed
8267633: Clarify documentation of (Doc)TreeScanner
Reviewed-by: jjg
1 parent 86a8f44 commit 5a5b807

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/jdk.compiler/share/classes/com/sun/source/util/DocTreeScanner.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -40,13 +40,13 @@
4040
* <ul>
4141
* <li>If the node being visited has no children, the result will be {@code null}.
4242
* <li>If the node being visited has one child, the result will be the
43-
* result of calling {@code scan} on that child. The child may be a simple node
43+
* result of calling {@code scan} with that child. The child may be a simple node
4444
* or itself a list of nodes.
45-
* <li> If the node being visited has more than one child, the result will
46-
* be determined by calling {@code scan} each child in turn, and then combining the
45+
* <li>If the node being visited has more than one child, the result will
46+
* be determined by calling {@code scan} with each child in turn, and then combining the
4747
* result of each scan after the first with the cumulative result
4848
* so far, as determined by the {@link #reduce} method. Each child may be either
49-
* a simple node of a list of nodes. The default behavior of the {@code reduce}
49+
* a simple node or a list of nodes. The default behavior of the {@code reduce}
5050
* method is such that the result of the visitXYZ method will be the result of
5151
* the last child scanned.
5252
* </ul>

src/jdk.compiler/share/classes/com/sun/source/util/TreePath.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -33,7 +33,7 @@
3333

3434
/**
3535
* A path of tree nodes, typically used to represent the sequence of ancestor
36-
* nodes of a tree node up to the top level CompilationUnitTree node.
36+
* nodes of a tree node up to the top-level {@code CompilationUnitTree} node.
3737
*
3838
* @author Jonathan Gibbons
3939
* @since 1.6

src/jdk.compiler/share/classes/com/sun/source/util/TreeScanner.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,13 +39,13 @@
3939
* <ul>
4040
* <li>If the node being visited has no children, the result will be {@code null}.
4141
* <li>If the node being visited has one child, the result will be the
42-
* result of calling {@code scan} on that child. The child may be a simple node
42+
* result of calling {@code scan} with that child. The child may be a simple node
4343
* or itself a list of nodes.
44-
* <li> If the node being visited has more than one child, the result will
45-
* be determined by calling {@code scan} each child in turn, and then combining the
44+
* <li>If the node being visited has more than one child, the result will
45+
* be determined by calling {@code scan} with each child in turn, and then combining the
4646
* result of each scan after the first with the cumulative result
4747
* so far, as determined by the {@link #reduce} method. Each child may be either
48-
* a simple node of a list of nodes. The default behavior of the {@code reduce}
48+
* a simple node or a list of nodes. The default behavior of the {@code reduce}
4949
* method is such that the result of the visitXYZ method will be the result of
5050
* the last child scanned.
5151
* </ul>

0 commit comments

Comments
 (0)