|
1 | 1 | /*
|
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. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
40 | 40 | * <ul>
|
41 | 41 | * <li>If the node being visited has no children, the result will be {@code null}.
|
42 | 42 | * <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 |
44 | 44 | * 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 |
47 | 47 | * result of each scan after the first with the cumulative result
|
48 | 48 | * 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} |
50 | 50 | * method is such that the result of the visitXYZ method will be the result of
|
51 | 51 | * the last child scanned.
|
52 | 52 | * </ul>
|
|
0 commit comments