Skip to content

Deserializing into generic classes #241

@TheMythologist

Description

@TheMythologist

With the current implementation, one cannot deserialise into a generic class without suppressing warnings. However, this can be achieved using TypeReference, from the jackson library (that is already a part of the AB3 dependencies).

For instance, this would not work without warnings or suppressions:

Optional<ArrayList<String>> configOptional = ConfigUtil.readConfig(configFilePathUsed);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions