Skip to content

Commit 4d84122

Browse files
1 parent a6e073b commit 4d84122

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
type: specs.openrewrite.org/v1beta/example
1616
recipeName: org.openrewrite.java.jackson.CodehausToFasterXML
1717
examples:
18-
- description: ''
18+
- description: '`CodehausToFasterXMLTest#onlyJsonSerializeInclusion`'
1919
sources:
2020
- before: |
2121
import org.codehaus.jackson.map.ObjectMapper;
@@ -42,7 +42,7 @@ examples:
4242
type: specs.openrewrite.org/v1beta/example
4343
recipeName: org.openrewrite.java.jackson.RemoveBuiltInModuleRegistrations
4444
examples:
45-
- description: ''
45+
- description: '`RemoveBuiltInModuleRegistrationsTest#removeJavaTimeModuleRegistration`'
4646
sources:
4747
- before: |
4848
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -67,7 +67,7 @@ examples:
6767
type: specs.openrewrite.org/v1beta/example
6868
recipeName: org.openrewrite.java.jackson.RemoveRedundantJsonPropertyValue
6969
examples:
70-
- description: ''
70+
- description: '`RemoveRedundantJsonPropertyValueTest#removeRedundantJsonPropertyFromClass`'
7171
sources:
7272
- before: |
7373
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -95,26 +95,7 @@ examples:
9595
type: specs.openrewrite.org/v1beta/example
9696
recipeName: org.openrewrite.java.jackson.UpgradeJackson_2_3
9797
examples:
98-
- description: ''
99-
sources:
100-
- before: |
101-
import com.fasterxml.jackson.core.JsonGenerator;
102-
103-
class Test {
104-
void test(JsonGenerator gen, Object value) throws Exception {
105-
gen.writeObject(value);
106-
}
107-
}
108-
after: |
109-
import tools.jackson.core.JsonGenerator;
110-
111-
class Test {
112-
void test(JsonGenerator gen, Object value) throws Exception {
113-
gen.writePOJO(value);
114-
}
115-
}
116-
language: java
117-
- description: ''
98+
- description: '`Jackson3DependenciesTest#jacksonAnnotations`'
11899
sources:
119100
- before: |
120101
<project>
@@ -146,7 +127,26 @@ examples:
146127
</project>
147128
path: pom.xml
148129
language: xml
149-
- description: ''
130+
- description: '`Jackson3MethodRenamesTest#jsonGeneratorWriteObject`'
131+
sources:
132+
- before: |
133+
import com.fasterxml.jackson.core.JsonGenerator;
134+
135+
class Test {
136+
void test(JsonGenerator gen, Object value) throws Exception {
137+
gen.writeObject(value);
138+
}
139+
}
140+
after: |
141+
import tools.jackson.core.JsonGenerator;
142+
143+
class Test {
144+
void test(JsonGenerator gen, Object value) throws Exception {
145+
gen.writePOJO(value);
146+
}
147+
}
148+
language: java
149+
- description: '`Jackson3TypeChangesTest#jsonFactory`'
150150
sources:
151151
- before: |
152152
import com.fasterxml.jackson.core.JsonFactory;
@@ -161,7 +161,7 @@ examples:
161161
TokenStreamFactory factory = new TokenStreamFactory();
162162
}
163163
language: java
164-
- description: ''
164+
- description: '`UpgradeJackson_2_3Test#jacksonUpgradeToVersion3`'
165165
sources:
166166
- before: |
167167
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -241,7 +241,7 @@ examples:
241241
type: specs.openrewrite.org/v1beta/example
242242
recipeName: org.openrewrite.java.jackson.UpgradeJackson_2_3_RemoveRedundantFeatureFlags
243243
examples:
244-
- description: ''
244+
- description: '`RemoveRedundantFeatureFlagsTest#removeEnableSortPropertiesAlphabetically`'
245245
sources:
246246
- before: |
247247
import com.fasterxml.jackson.databind.MapperFeature;
@@ -267,7 +267,7 @@ examples:
267267
type: specs.openrewrite.org/v1beta/example
268268
recipeName: org.openrewrite.java.jackson.UseModernDateTimeSerialization
269269
examples:
270-
- description: ''
270+
- description: '`UseModernDateTimeSerializationTest#removeIso8601FormatOnLocalDateTime`'
271271
sources:
272272
- before: |
273273
import com.fasterxml.jackson.annotation.JsonFormat;
@@ -288,7 +288,7 @@ examples:
288288
type: specs.openrewrite.org/v1beta/example
289289
recipeName: org.openrewrite.java.jackson.codehaus.CodehausDependencyToFasterXML
290290
examples:
291-
- description: ''
291+
- description: '`CodehausDependencyToFasterXMLTest#changeDependencyWithoutExplicitVersion`'
292292
parameters:
293293
- 'null'
294294
sources:
@@ -317,7 +317,7 @@ examples:
317317
type: specs.openrewrite.org/v1beta/example
318318
recipeName: org.openrewrite.java.jackson.codehaus.JsonIncludeAnnotation
319319
examples:
320-
- description: ''
320+
- description: '`JsonIncludeAnnotationTest#retainOriginalAnnotation`'
321321
sources:
322322
- before: |
323323
import org.codehaus.jackson.map.annotate.JsonSerialize;
@@ -341,7 +341,7 @@ examples:
341341
type: specs.openrewrite.org/v1beta/example
342342
recipeName: org.openrewrite.java.jackson.codehaus.RemoveDoublyAnnotatedCodehausAnnotations
343343
examples:
344-
- description: ''
344+
- description: '`RemoveDoublyAnnotatedCodehausAnnotationsTest#removeCodehausAnnotationsIfDoublyAnnotated`'
345345
sources:
346346
- before: |
347347
import org.codehaus.jackson.map.annotate.JsonSerialize;

0 commit comments

Comments
 (0)