Skip to content

Commit

Permalink
updated documentation since accept no longer exists on JavaPackage (#…
Browse files Browse the repository at this point in the history
…1140)

The `PackageVisitor` could also be replaced with a method reference, but
I left that for clarity's sake.
  • Loading branch information
codecholeric authored Oct 8, 2023
2 parents 066a671 + 3ca046c commit 874c0a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/userguide/007_The_Lang_API.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ ClassesTransformer<JavaPackage> packages = new AbstractClassesTransformer<JavaPa
@Override
public Iterable<JavaPackage> doTransform(JavaClasses classes) {
Set<JavaPackage> result = new HashSet<>();
classes.getDefaultPackage().accept(alwaysTrue(), new PackageVisitor() {
classes.getDefaultPackage().traversePackageTree(alwaysTrue(), new PackageVisitor() {
@Override
public void visit(JavaPackage javaPackage) {
result.add(javaPackage);
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/html/000_Index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ <h3 id="_rules_with_custom_concepts"><a class="anchor" href="#_rules_with_custom
@Override
public Iterable&lt;JavaPackage&gt; doTransform(JavaClasses classes) {
Set&lt;JavaPackage&gt; result = new HashSet&lt;&gt;();
classes.getDefaultPackage().accept(alwaysTrue(), new PackageVisitor() {
classes.getDefaultPackage().traversePackageTree(alwaysTrue(), new PackageVisitor() {
@Override
public void visit(JavaPackage javaPackage) {
result.add(javaPackage);
Expand Down

0 comments on commit 874c0a1

Please sign in to comment.