File tree Expand file tree Collapse file tree
src/main/resources/META-INF/rewrite Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# limitations under the License.
1414---
1515type : 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
1642recipeName : org.openrewrite.java.recipes.BlankLinesAroundFieldsWithAnnotations
1743examples :
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
You can’t perform that action at this time.
0 commit comments