Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow to configure Jackson's JaxRSFeature on Jersey DefaultJacksonJaxbJsonProvider #5816

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

jansupol
Copy link
Contributor

@jansupol jansupol commented Dec 4, 2024

No description provided.

…bJsonProvider

Signed-off-by: jansupol <jan.supol@oracle.com>
Signed-off-by: jansupol <jan.supol@oracle.com>
Signed-off-by: jansupol <jan.supol@oracle.com>
}
}

private Optional<List<JaxRSFeatureState>> jaxRSFeature = Optional.empty();
Copy link
Member

@jbescos jbescos Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it makes sense to remove Optional and just have the list?:
private final List<JaxRSFeatureState> jaxRSFeatures = new ArrayList<>();

If empty, hasJaxrsFeature returns false

I found this is more understandable, although this is only a personal opinion.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants