Title: Make Name properly immutable · Issue #160 · dnsjava/dnsjava · GitHub
Open Graph Title: Make Name properly immutable · Issue #160 · dnsjava/dnsjava
X Title: Make Name properly immutable · Issue #160 · dnsjava/dnsjava
Description: The public API of Name is immutable, meaning that there are no methods that can be used to change the state of a Name instance once constructed. However, as an implementation detail of how the public constructors populate the fields of t...
Open Graph Description: The public API of Name is immutable, meaning that there are no methods that can be used to change the state of a Name instance once constructed. However, as an implementation detail of how the publ...
X Description: The public API of Name is immutable, meaning that there are no methods that can be used to change the state of a Name instance once constructed. However, as an implementation detail of how the publ...
Opengraph URL: https://github.com/dnsjava/dnsjava/issues/160
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make Name properly immutable","articleBody":"The public API of `Name` is immutable, meaning that there are no methods that can be used to change the state of a `Name` instance once constructed. However, as an implementation detail of how the public constructors populate the fields of the class, they end up calling private api that modifies state repeatedly.\r\n\r\nHaving only final fields in immutable objects is good house keeping, but unfortunately test coverage is not very high for `Name` so it is a bit scary to do refactoring work. Getting to, or close to 100% unit test coverage and then update the implementation to allow for using the `final` modifier with all fields would be a neat contribution in my opinion.","author":{"url":"https://github.com/nresare","@type":"Person","name":"nresare"},"datePublished":"2021-02-05T12:48:15Z","url":"https://github.com/dnsjava/dnsjava/issues/160"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:f1ffa6a1-8d2b-a41b-cc4b-02aac6b55689 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B908:D3616:D278D:117648:6B060749 |
| html-safe-nonce | c2ed27a6ed3a3e1b539a25a8d573c62073604e3700351dcd3c8a2631d0209161 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTA4OkQzNjE2OkQyNzhEOjExNzY0ODo2QjA2MDc0OSIsInZpc2l0b3JfaWQiOiI0MDk0MjQyMDM5ODcxNzAyODU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ec1b207be27444257a8119a1efc0d409553b434a4298274d93c235c1cfe54ec7 |
| hovercard-subject-tag | issue:802137839 |
| 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/dnsjava/dnsjava/160/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a395611482d28e8f11da63a31a66a7e05e20e8b1695138e3ebe12f97a313d03/dnsjava/dnsjava/issues/160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a395611482d28e8f11da63a31a66a7e05e20e8b1695138e3ebe12f97a313d03/dnsjava/dnsjava/issues/160 |
| og:image:alt | The public API of Name is immutable, meaning that there are no methods that can be used to change the state of a Name instance once constructed. However, as an implementation detail of how the publ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nresare |
| hostname | github.com |
| expected-hostname | github.com |
| None | 47127d2f2009e000f3401193f8b4163109ac669adad0804de1ee0e6333ca7b9e |
| turbo-cache-control | no-preview |
| go-import | github.com/dnsjava/dnsjava git https://github.com/dnsjava/dnsjava.git |
| octolytics-dimension-user_id | 6755615 |
| octolytics-dimension-user_login | dnsjava |
| octolytics-dimension-repository_id | 17084567 |
| octolytics-dimension-repository_nwo | dnsjava/dnsjava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17084567 |
| octolytics-dimension-repository_network_root_nwo | dnsjava/dnsjava |
| 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 | 0760ea46a027ba5099cdef7abd54f27865eb4f44 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width