-
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
More performance optimizations #9076
Conversation
* @since 4.0.0 | ||
*/ | ||
default MutableHttpResponse<?> toMutableResponse() { | ||
if (this instanceof MutableHttpResponse<?> mutableHttpResponse) { |
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.
just override it in MutableHttpResponse instead
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.
oh i see you did that, remove this check then.
router/src/main/java/io/micronaut/web/router/DefaultMethodBasedRouteInfo.java
Outdated
Show resolved
Hide resolved
|
||
@Override | ||
public boolean needsRequestBody() { | ||
return needsBody || super.needsRequestBody(); |
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.
i think you could fold super.needsRequestBody into needsBody too, call it in the constructor. probably doesn't matter though.
…dRouteInfo.java Co-authored-by: Jonas Konrad <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
No description provided.