Skip to content

Commit

Permalink
Added visit source to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-solomon committed Nov 22, 2023
1 parent beb28eb commit 6207276
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion changelog/8-1-2-Release.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,12 @@ public class AddOrUpdateAnnotationAttribute extends Recipe {

All cleanup recipes have been moved to the [rewrite-static-analysis](https://github.com/openrewrite/rewrite-static-analysis) repository. The package name has also changed from `org.openrewrite.java.cleanup` to `org.openrewrite.staticanalysis`.

### visitJavaSource file was removed
### visitJavaSourceFile and visitSource were removed

The [JavaVisitor.visitJavaSourceFile(JavaSourceFile cu, P p)](https://github.com/openrewrite/rewrite/blob/v7.40.8/rewrite-java/src/main/java/org/openrewrite/java/JavaVisitor.java#L459-L462) method was removed in favor of the [TreeVisitor.visit(@Nullable Tree tree, P p) method](https://github.com/openrewrite/rewrite/blob/main/rewrite-core/src/main/java/org/openrewrite/TreeVisitor.java#L66).

Similarly, [TreeVisitor.visitSource](https://github.com/openrewrite/rewrite/blob/v7.40.8/rewrite-core/src/main/java/org/openrewrite/TreeVisitor.java#L176-L179) has been replaced with [TreeVisitor.visit(Tree tree, P p)](https://github.com/openrewrite/rewrite/blob/v8.9.6/rewrite-core/src/main/java/org/openrewrite/TreeVisitor.java#L253).

**Example**:

{% tabs %}
Expand Down

0 comments on commit 6207276

Please sign in to comment.