@@ -3637,6 +3637,8 @@ public <T extends JsonNode> T valueToTree(Object fromValue)
3637
3637
* serializable)
3638
3638
*
3639
3639
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
3640
+ * It is recommended to try directly testing serialization using actual JSON inputs and outputs
3641
+ * in test cases to ensure correctness and compatibility with real-world use cases.
3640
3642
*/
3641
3643
@ Deprecated // @since 2.18
3642
3644
public boolean canSerialize (Class <?> type ) {
@@ -3651,6 +3653,8 @@ public boolean canSerialize(Class<?> type) {
3651
3653
* @since 2.3
3652
3654
*
3653
3655
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
3656
+ * It is recommended to try directly testing serialization using actual JSON inputs and outputs
3657
+ * in test cases to ensure correctness and compatibility with real-world use cases.
3654
3658
*/
3655
3659
@ Deprecated // @since 2.18
3656
3660
public boolean canSerialize (Class <?> type , AtomicReference <Throwable > cause ) {
@@ -3675,6 +3679,8 @@ public boolean canSerialize(Class<?> type, AtomicReference<Throwable> cause) {
3675
3679
* serializable)
3676
3680
*
3677
3681
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
3682
+ * It is recommended to try directly testing deserialization using actual JSON inputs and outputs
3683
+ * in test cases to ensure correctness and compatibility with real-world use cases.
3678
3684
*/
3679
3685
@ Deprecated // @since 2.18
3680
3686
public boolean canDeserialize (JavaType type )
@@ -3691,6 +3697,8 @@ public boolean canDeserialize(JavaType type)
3691
3697
* @since 2.3
3692
3698
*
3693
3699
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
3700
+ * It is recommended to try directly testing deserialization using actual JSON inputs and outputs
3701
+ * in test cases to ensure correctness and compatibility with real-world use cases.
3694
3702
*/
3695
3703
@ Deprecated // @since 2.18
3696
3704
public boolean canDeserialize (JavaType type , AtomicReference <Throwable > cause )
0 commit comments