Skip to content

Doc : Resolve #4570 explain more on ObjectMapper.canDeserialize()/ObjectMapper.canSerialize() deprecation #4826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3637,6 +3637,8 @@ public <T extends JsonNode> T valueToTree(Object fromValue)
* serializable)
*
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
* It is recommended to try directly testing serialization using actual JSON inputs and outputs
* in test cases to ensure correctness and compatibility with real-world use cases.
*/
@Deprecated // @since 2.18
public boolean canSerialize(Class<?> type) {
Expand All @@ -3651,6 +3653,8 @@ public boolean canSerialize(Class<?> type) {
* @since 2.3
*
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
* It is recommended to try directly testing serialization using actual JSON inputs and outputs
* in test cases to ensure correctness and compatibility with real-world use cases.
*/
@Deprecated // @since 2.18
public boolean canSerialize(Class<?> type, AtomicReference<Throwable> cause) {
Expand All @@ -3675,6 +3679,8 @@ public boolean canSerialize(Class<?> type, AtomicReference<Throwable> cause) {
* serializable)
*
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
* It is recommended to try directly testing deserialization using actual JSON inputs and outputs
* in test cases to ensure correctness and compatibility with real-world use cases.
*/
@Deprecated // @since 2.18
public boolean canDeserialize(JavaType type)
Expand All @@ -3691,6 +3697,8 @@ public boolean canDeserialize(JavaType type)
* @since 2.3
*
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
* It is recommended to try directly testing deserialization using actual JSON inputs and outputs
* in test cases to ensure correctness and compatibility with real-world use cases.
*/
@Deprecated // @since 2.18
public boolean canDeserialize(JavaType type, AtomicReference<Throwable> cause)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,8 @@ public void acceptJsonFormatVisitor(Class<?> type, JsonFormatVisitorWrapper visi
* it could serialize an instance of given Class.
*
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
* It is recommended to try directly testing serialization using actual JSON inputs and outputs
* in test cases to ensure correctness and compatibility with real-world use cases.
*/
@Deprecated // @since 2.18
public boolean canSerialize(Class<?> type) {
Expand All @@ -1229,6 +1231,8 @@ public boolean canSerialize(Class<?> type) {
* @since 2.3
*
* @deprecated Since 2.18 use discouraged; method to be removed from Jackson 3.0
* It is recommended to try directly testing serialization using actual JSON inputs and outputs
* in test cases to ensure correctness and compatibility with real-world use cases.
*/
@Deprecated // @since 2.18
public boolean canSerialize(Class<?> type, AtomicReference<Throwable> cause) {
Expand Down
Loading