Skip to content

Commit 0ca7da6

Browse files
1 parent 200450a commit 0ca7da6

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

src/main/resources/META-INF/rewrite/examples.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,32 @@
1313
# limitations under the License.
1414
---
1515
type: specs.openrewrite.org/v1beta/example
16+
recipeName: org.openrewrite.java.InlineMethodCalls
17+
examples:
18+
- description: ''
19+
sources:
20+
- before: |
21+
import org.openrewrite.java.trait.Literal;
22+
import org.openrewrite.java.trait.Traits;
23+
import org.openrewrite.marker.SearchResult;
24+
25+
class Test {
26+
void test() {
27+
Literal.Matcher literal = Traits.literal();
28+
}
29+
}
30+
after: |
31+
import org.openrewrite.java.trait.Literal;
32+
import org.openrewrite.marker.SearchResult;
33+
34+
class Test {
35+
void test() {
36+
Literal.Matcher literal = new Literal.Matcher();
37+
}
38+
}
39+
language: java
40+
---
41+
type: specs.openrewrite.org/v1beta/example
1642
recipeName: org.openrewrite.java.recipes.BlankLinesAroundFieldsWithAnnotations
1743
examples:
1844
- description: ''
@@ -839,29 +865,3 @@ examples:
839865
}
840866
}
841867
language: java
842-
---
843-
type: specs.openrewrite.org/v1beta/example
844-
recipeName: org.openrewrite.java.recipes.migrate.RemoveTraitsUsageRecipes
845-
examples:
846-
- description: ''
847-
sources:
848-
- before: |
849-
import org.openrewrite.java.trait.Literal;
850-
import org.openrewrite.java.trait.Traits;
851-
import org.openrewrite.marker.SearchResult;
852-
853-
class Test {
854-
void test() {
855-
Literal.Matcher literal = Traits.literal();
856-
}
857-
}
858-
after: |
859-
import org.openrewrite.java.trait.Literal;
860-
import org.openrewrite.marker.SearchResult;
861-
862-
class Test {
863-
void test() {
864-
Literal.Matcher literal = new Literal.Matcher();
865-
}
866-
}
867-
language: java

0 commit comments

Comments
 (0)