Skip to content
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

Remove meaningless checks and properties in KNAI. #542

Open
wants to merge 1 commit into
base: 2.13
Choose a base branch
from

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Jan 15, 2022

The hasCreatorAnnotation was checking if the declaringClass was included in the ignoredClassesForImplyingJsonCreator.
On the other hand, since ignoredClassesForImplyingJsonCreator was always the emptySet, this check would always return false.
(Since KotlinNameAnnotationIntrospector is an internal class, it is not initialized with any external arguments.)

This PR removes meaningless checks and removes ignoredClassesForImplyingJsonCreator.

However, it seems to me that this property should be set via KotlinFeature.
Do you have any background on this?

Since the ignoredClassesForImplyingJsonCreator was always emptySet, there was no point in checking it.
@k163377 k163377 changed the base branch from 2.14 to 2.13 January 15, 2022 05:51
k163377 added a commit to ProjectMapK/jackson-module-kogera that referenced this pull request Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant