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

More performance optimizations #9076

Merged
merged 3 commits into from
Apr 11, 2023
Merged

More performance optimizations #9076

merged 3 commits into from
Apr 11, 2023

Conversation

dstepanov
Copy link
Contributor

No description provided.

@dstepanov dstepanov requested review from graemerocher and yawkat April 6, 2023 17:22
* @since 4.0.0
*/
default MutableHttpResponse<?> toMutableResponse() {
if (this instanceof MutableHttpResponse<?> mutableHttpResponse) {
Copy link
Member

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

Copy link
Member

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.


@Override
public boolean needsRequestBody() {
return needsBody || super.needsRequestBody();
Copy link
Member

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.

@graemerocher graemerocher merged commit 22d2e48 into 4.0.x Apr 11, 2023
@graemerocher graemerocher deleted the moreperf2 branch April 11, 2023 08:49
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

70.6% 70.6% Coverage
6.8% 6.8% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants