GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — Use the real parameter names in argument-check messages by Dhairya-007 · Pull Request #18309 · netty/netty Conversation
Contributor
Five
In each case the sibling checks in the same constructor already use the actual parameter name ( No behaviour changes and no test asserts on these strings. Note the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsFive ObjectUtil checks named a parameter that does not exist on the method, so the NullPointerException or IllegalArgumentException pointed at a name the caller cannot find in the signature. Each sibling check in the same constructor already uses the actual name. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
🚨 Jobs failed without executing tests 🚨Failed Jobs without Test Failures❌ Auto-port to 4.1 / Auto-porting to 4.1 🏷️ Commit: 10fc338 Rerun ControlsClick the checkbox to trigger a rerun:
Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
#18315) Auto-port of #18309 to 5.0 Cherry-picked commit: fdff853 --- Five `ObjectUtil` checks pass a name that does not match the parameter being checked, so the resulting `NullPointerException` / `IllegalArgumentException` points the caller at a name that is not in the signature: | File | Parameter | Message said | |---|---|---| | `NioIoHandler` | `executor` | `executionContext` | | `DefaultHttp2HeadersEncoder` | `sensitivityDetector` | `sensitiveDetector` | | `DefaultHttp2RemoteFlowController` | `streamByteDistributor` | `streamWriteDistributor` | | `BoundedInputStream` | `maxBytesRead` | `maxRead` | | `DefaultSocks5InitialRequest` | `authMethods` | `authSchemes` | In each case the sibling checks in the same constructor already use the actual parameter name (`selectorProvider`, `hpackEncoder`, `connection`, ...), so these look like copy/paste leftovers. No behaviour changes and no test asserts on these strings. Note the `authSchemes` name is correct in the legacy `codec-socks` v4 classes, where it really is the field name — only the `socksx/v5` occurrence is changed here. Co-authored-by: dhairya05 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.