@@ -3636,7 +3636,10 @@ public <T extends JsonNode> T valueToTree(Object fromValue)
3636
3636
* @return True if mapper can find a serializer for instances of
3637
3637
* given class (potentially serializable), false otherwise (not
3638
3638
* serializable)
3639
+ *
3640
+ * @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
3639
3641
*/
3642
+ @ Deprecated // @since 2.18
3640
3643
public boolean canSerialize (Class <?> type ) {
3641
3644
return _serializerProvider (getSerializationConfig ()).hasSerializerFor (type , null );
3642
3645
}
@@ -3647,7 +3650,10 @@ public boolean canSerialize(Class<?> type) {
3647
3650
* serializer: this may be useful in figuring out what the actual problem is.
3648
3651
*
3649
3652
* @since 2.3
3653
+ *
3654
+ * @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
3650
3655
*/
3656
+ @ Deprecated // @since 2.18
3651
3657
public boolean canSerialize (Class <?> type , AtomicReference <Throwable > cause ) {
3652
3658
return _serializerProvider (getSerializationConfig ()).hasSerializerFor (type , cause );
3653
3659
}
@@ -3668,7 +3674,10 @@ public boolean canSerialize(Class<?> type, AtomicReference<Throwable> cause) {
3668
3674
* @return True if mapper can find a serializer for instances of
3669
3675
* given class (potentially serializable), false otherwise (not
3670
3676
* serializable)
3677
+ *
3678
+ * @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
3671
3679
*/
3680
+ @ Deprecated // @since 2.18
3672
3681
public boolean canDeserialize (JavaType type )
3673
3682
{
3674
3683
return createDeserializationContext (null ,
@@ -3681,7 +3690,10 @@ public boolean canDeserialize(JavaType type)
3681
3690
* serializer: this may be useful in figuring out what the actual problem is.
3682
3691
*
3683
3692
* @since 2.3
3693
+ *
3694
+ * @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
3684
3695
*/
3696
+ @ Deprecated // @since 2.18
3685
3697
public boolean canDeserialize (JavaType type , AtomicReference <Throwable > cause )
3686
3698
{
3687
3699
return createDeserializationContext (null ,
@@ -3690,8 +3702,7 @@ public boolean canDeserialize(JavaType type, AtomicReference<Throwable> cause)
3690
3702
3691
3703
/*
3692
3704
/**********************************************************
3693
- /* Extended Public API, deserialization,
3694
- /* convenience methods
3705
+ /* Extended Public API, deserialization, convenience methods
3695
3706
/**********************************************************
3696
3707
*/
3697
3708
0 commit comments