-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
Are there tests that cover this behaviour? Probably yes because some are failing |
I need to investigate |
http/src/main/java/io/micronaut/http/body/DefaultMessageBodyHandlerRegistry.java
Outdated
Show resolved
Hide resolved
inject/src/main/java/io/micronaut/inject/qualifiers/MatchArgumentQualifier.java
Outdated
Show resolved
Hide resolved
inject/src/main/java/io/micronaut/inject/qualifiers/MatchArgumentQualifier.java
Show resolved
Hide resolved
* @param <T> The bean type | ||
* @return The qualifier | ||
*/ | ||
public static <T> MatchArgumentQualifier<T> contravariant(Class<T> beanType, Argument<?> genericArgument) { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
inject/src/main/java/io/micronaut/inject/qualifiers/MatchArgumentQualifier.java
Outdated
Show resolved
Hide resolved
|
No description provided.