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

Use MatchArgumentQualifier for DefaultMessageBodyHandlerRegistry #10964

Merged
merged 5 commits into from
Jul 15, 2024
Merged

Conversation

dstepanov
Copy link
Contributor

No description provided.

@dstepanov dstepanov requested review from graemerocher and yawkat July 9, 2024 13:06
@graemerocher
Copy link
Contributor

Are there tests that cover this behaviour? Probably yes because some are failing

@dstepanov
Copy link
Contributor Author

I need to investigate

CR
* @param <T> The bean type
* @return The qualifier
*/
public static <T> MatchArgumentQualifier<T> contravariant(Class<T> beanType, Argument<?> genericArgument) {
Copy link
Contributor

Choose a reason for hiding this comment

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

add nullability annotations

* Use-cases are generic deserializers, readers.
* Java example:
* MyReader[ArrayList[String]] candidate = ...;
* MyReader[? extends List[String]] aMatch = candidate;
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add @since here and wrap the code snippets in <pre><code> tags

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add the code tag, since is not needed because the class is new in this version

CR
Copy link

@dstepanov dstepanov merged commit 45b9d2f into 4.6.x Jul 15, 2024
17 checks passed
@dstepanov dstepanov deleted the mbr branch July 15, 2024 09:50
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

3 participants