1515type : specs.openrewrite.org/v1beta/example
1616recipeName : org.openrewrite.java.jackson.CodehausToFasterXML
1717examples :
18- - description : ' '
18+ - description : ' `CodehausToFasterXMLTest#onlyJsonSerializeInclusion` '
1919 sources :
2020 - before : |
2121 import org.codehaus.jackson.map.ObjectMapper;
@@ -42,7 +42,7 @@ examples:
4242type : specs.openrewrite.org/v1beta/example
4343recipeName : org.openrewrite.java.jackson.RemoveBuiltInModuleRegistrations
4444examples :
45- - description : ' '
45+ - description : ' `RemoveBuiltInModuleRegistrationsTest#removeJavaTimeModuleRegistration` '
4646 sources :
4747 - before : |
4848 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -67,7 +67,7 @@ examples:
6767type : specs.openrewrite.org/v1beta/example
6868recipeName : org.openrewrite.java.jackson.RemoveRedundantJsonPropertyValue
6969examples :
70- - description : ' '
70+ - description : ' `RemoveRedundantJsonPropertyValueTest#removeRedundantJsonPropertyFromClass` '
7171 sources :
7272 - before : |
7373 import com.fasterxml.jackson.annotation.JsonProperty;
@@ -95,26 +95,7 @@ examples:
9595type : specs.openrewrite.org/v1beta/example
9696recipeName : org.openrewrite.java.jackson.UpgradeJackson_2_3
9797examples :
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:
241241type : specs.openrewrite.org/v1beta/example
242242recipeName : org.openrewrite.java.jackson.UpgradeJackson_2_3_RemoveRedundantFeatureFlags
243243examples :
244- - description : ' '
244+ - description : ' `RemoveRedundantFeatureFlagsTest#removeEnableSortPropertiesAlphabetically` '
245245 sources :
246246 - before : |
247247 import com.fasterxml.jackson.databind.MapperFeature;
@@ -267,7 +267,7 @@ examples:
267267type : specs.openrewrite.org/v1beta/example
268268recipeName : org.openrewrite.java.jackson.UseModernDateTimeSerialization
269269examples :
270- - description : ' '
270+ - description : ' `UseModernDateTimeSerializationTest#removeIso8601FormatOnLocalDateTime` '
271271 sources :
272272 - before : |
273273 import com.fasterxml.jackson.annotation.JsonFormat;
@@ -288,7 +288,7 @@ examples:
288288type : specs.openrewrite.org/v1beta/example
289289recipeName : org.openrewrite.java.jackson.codehaus.CodehausDependencyToFasterXML
290290examples :
291- - description : ' '
291+ - description : ' `CodehausDependencyToFasterXMLTest#changeDependencyWithoutExplicitVersion` '
292292 parameters :
293293 - ' null'
294294 sources :
@@ -317,7 +317,7 @@ examples:
317317type : specs.openrewrite.org/v1beta/example
318318recipeName : org.openrewrite.java.jackson.codehaus.JsonIncludeAnnotation
319319examples :
320- - description : ' '
320+ - description : ' `JsonIncludeAnnotationTest#retainOriginalAnnotation` '
321321 sources :
322322 - before : |
323323 import org.codehaus.jackson.map.annotate.JsonSerialize;
@@ -341,7 +341,7 @@ examples:
341341type : specs.openrewrite.org/v1beta/example
342342recipeName : org.openrewrite.java.jackson.codehaus.RemoveDoublyAnnotatedCodehausAnnotations
343343examples :
344- - description : ' '
344+ - description : ' `RemoveDoublyAnnotatedCodehausAnnotationsTest#removeCodehausAnnotationsIfDoublyAnnotated` '
345345 sources :
346346 - before : |
347347 import org.codehaus.jackson.map.annotate.JsonSerialize;
0 commit comments