Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Conversation

@jazcarate
Copy link

Use int for the ByteAggregator to not overflow when creating the underlying ByteArrayOutputStream.

Bonus: Fix warnings on the ByteAggregatorTest

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.*;
Copy link

Choose a reason for hiding this comment

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

style: we typically prefer explicit imports.

@codecov
Copy link

codecov bot commented Oct 14, 2022

Codecov Report

Base: 79.97% // Head: 79.93% // Decreases project coverage by -0.04% ⚠️

Coverage data is based on head (335afe8) compared to base (19548e7).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 335afe8 differs from pull request most recent head a063e18. Consider uploading reports for the commit a063e18 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #23      +/-   ##
============================================
- Coverage     79.97%   79.93%   -0.05%     
+ Complexity      973      972       -1     
============================================
  Files           118      118              
  Lines          3491     3493       +2     
  Branches        322      322              
============================================
  Hits           2792     2792              
- Misses          527      528       +1     
- Partials        172      173       +1     
Impacted Files Coverage Δ
...ava/com/king/platform/net/http/ByteAggregator.java 100.00% <100.00%> (ø)
...ng/platform/net/http/WebSocketListenerAdapter.java 66.66% <0.00%> (-16.67%) ⬇️
...http/netty/response/HttpClientResponseHandler.java 82.81% <0.00%> (-3.91%) ⬇️
...atform/net/http/integration/RecordingEventBus.java 89.81% <0.00%> (+0.92%) ⬆️
.../net/http/netty/websocket/WebSocketClientImpl.java 68.21% <0.00%> (+1.07%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

…derlying ByteArrayOutputStream.

Bonus: Fix warnings on the `ByteAggregatorTest`
@jazcarate jazcarate force-pushed the bugfix/byteaggregator-overflow branch from 335afe8 to a063e18 Compare October 14, 2022 07:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants