File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
src/main/resources/META-INF/rewrite Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -3896,6 +3896,25 @@ examples:
38963896 language: java
38973897 ---
38983898type : specs.openrewrite.org/v1beta/example
3899+ recipeName : org.openrewrite.java.migrate.io.ReplaceSystemOutWithIOPrint
3900+ examples :
3901+ - description : ' '
3902+ sources :
3903+ - before : |
3904+ class Example {
3905+ void test() {
3906+ System.out.print("Hello");
3907+ }
3908+ }
3909+ after: |
3910+ class Example {
3911+ void test() {
3912+ IO.print("Hello");
3913+ }
3914+ }
3915+ language: java
3916+ ---
3917+ type : specs.openrewrite.org/v1beta/example
38993918recipeName : org.openrewrite.java.migrate.jacoco.UpgradeJaCoCo
39003919examples :
39013920- description : ' '
@@ -7479,6 +7498,30 @@ examples:
74797498 language: java
74807499 ---
74817500type : specs.openrewrite.org/v1beta/example
7501+ recipeName : org.openrewrite.java.migrate.util.MigrateStringReaderToReaderOf
7502+ examples :
7503+ - description : ' '
7504+ sources :
7505+ - before : |
7506+ import java.io.Reader;
7507+ import java.io.StringReader;
7508+
7509+ class Test {
7510+ void test(String content) {
7511+ Reader reader = new StringReader(content);
7512+ }
7513+ }
7514+ after: |
7515+ import java.io.Reader;
7516+
7517+ class Test {
7518+ void test(String content) {
7519+ Reader reader = Reader.of(content);
7520+ }
7521+ }
7522+ language: java
7523+ ---
7524+ type : specs.openrewrite.org/v1beta/example
74827525recipeName : org.openrewrite.java.migrate.util.OptionalStreamRecipe
74837526examples :
74847527- description : ' '
You can’t perform that action at this time.
0 commit comments