You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/concepts-and-explanations/traits.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ public interface Trait<T extends Tree> {
46
46
47
47
## A real-world example: the Annotated trait
48
48
49
-
The [src/main/java/com/yourorg/FindSpringBeans.java recipe](https://github.com/moderneinc/rewrite-recipe-starter/blob/main/src/main/java/com/yourorg/FindSpringBeans.java) in the recipe starter project is a good example of how to use traits.
49
+
The [FindSpringBeans recipe](https://github.com/moderneinc/rewrite-recipe-starter/blob/main/src/main/java/com/yourorg/FindSpringBeans.java) in the recipe starter project is a good example of how to use traits.
50
50
51
51
To get a better idea of why you may want to use or create a trait, let's consider a real-world example: Java annotations. In Java, you can annotate methods and pass in a `String` to said annotation. _Syntactically_, this can be done in a few ways while keeping the same _semantic_ meaning. For example, you could write:
0 commit comments