Skip to content

Unchecked conversion warning in JsonMapper wrt TreeCodec.readTree() override #5485

Description

@ilgrosso

Describe your Issue

When defining a class like as

public class SyncopeJsonMapper extends JsonMapper {
...
}

(since I need to override some methods), I am getting the build warning as follows:

[WARNING] readTree(tools.jackson.core.JsonParser) in tools.jackson.databind.ObjectMapper implements <T>readTree(tools.jackson.core.JsonParser) in tools.jackson.core.TreeCodec
  return type requires unchecked conversion from tools.jackson.databind.JsonNode to T

This happens with 3.0.3.

Adding

@SuppressWarnings("unchecked")

does not seem to help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions