Title: [Java][Docs] Undocumented null return from CallHeaders.getAll() · Issue #139 · apache/arrow-java · GitHub
Open Graph Title: [Java][Docs] Undocumented null return from CallHeaders.getAll() · Issue #139 · apache/arrow-java
X Title: [Java][Docs] Undocumented null return from CallHeaders.getAll() · Issue #139 · apache/arrow-java
Description: Describe the bug, including details regarding any error messages, version, and platform. The Java CallHeaders documentation doesn't document that .getAll() will return null if no matches are found, so the reader is left with the default ...
Open Graph Description: Describe the bug, including details regarding any error messages, version, and platform. The Java CallHeaders documentation doesn't document that .getAll() will return null if no matches are found,...
X Description: Describe the bug, including details regarding any error messages, version, and platform. The Java CallHeaders documentation doesn't document that .getAll() will return null if no matches are fo...
Opengraph URL: https://github.com/apache/arrow-java/issues/139
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Java][Docs] Undocumented null return from CallHeaders.getAll()","articleBody":"### Describe the bug, including details regarding any error messages, version, and platform.\r\n\r\nThe Java CallHeaders documentation doesn't document that `.getAll()` will return `null` if no matches are found, so the reader is left with the default assumption of getting back an empty Iterator\u003c\u003e.\r\n\r\nI assume this probably extends to `.getAllByte()` but I haven't had time to investigate yet.\r\n\r\nI will probably fix the documentation in the near future, although (given it's theoretically not a breaking change—there is no guarantee of not receiving an empty Iterator\u003c\u003e either!) I'm somewhat more inclined to change the behaviour to eliminate the null check anywhere it's used, unless anyone objects.\r\n\r\n### Component(s)\r\n\r\nJava, Documentation","author":{"url":"https://github.com/indigophox","@type":"Person","name":"indigophox"},"datePublished":"2024-01-11T20:07:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/139/arrow-java/issues/139"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4c72e511-3b9b-f89c-1981-6b10d689bbfe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7B8:20FC8E:2D66F0:3B2AD1:6991D733 |
| html-safe-nonce | 377a7faa4eedf3efa61bb71615e7a0f038c81ee47fceeed628268aea4ab7d662 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0I4OjIwRkM4RToyRDY2RjA6M0IyQUQxOjY5OTFENzMzIiwidmlzaXRvcl9pZCI6IjQ3Nzg1MDU4MjcwMzUyNDAyNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 36c784bebd6053c1f7a9e1b1c33fc1367e6e8b60fb24fea65fe8ef52ada5d975 |
| hovercard-subject-tag | issue:2695809338 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/arrow-java/139/issue_layout |
| twitter:image | https://opengraph.githubassets.com/768824cc8853b93cea461bd008634fab3382ba48eaa05e00d2c34ab6652d5bbc/apache/arrow-java/issues/139 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/768824cc8853b93cea461bd008634fab3382ba48eaa05e00d2c34ab6652d5bbc/apache/arrow-java/issues/139 |
| og:image:alt | Describe the bug, including details regarding any error messages, version, and platform. The Java CallHeaders documentation doesn't document that .getAll() will return null if no matches are found,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | indigophox |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/arrow-java git https://github.com/apache/arrow-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 893682219 |
| octolytics-dimension-repository_nwo | apache/arrow-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 893682219 |
| octolytics-dimension-repository_network_root_nwo | apache/arrow-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width