Title: JSONTokener should implement java.io.Closeable · Issue #718 · stleary/JSON-java · GitHub
Open Graph Title: JSONTokener should implement java.io.Closeable · Issue #718 · stleary/JSON-java
X Title: JSONTokener should implement java.io.Closeable · Issue #718 · stleary/JSON-java
Description: While JSONTokener(java.io.Reader) and JSONTokener(java.io.InputStream) constructors have explicit notes about JSONTokener not closing the reader/stream, I’d like to have it close the reader/stream. Implementing java.io.Closeable isn’t ba...
Open Graph Description: While JSONTokener(java.io.Reader) and JSONTokener(java.io.InputStream) constructors have explicit notes about JSONTokener not closing the reader/stream, I’d like to have it close the reader/stream....
X Description: While JSONTokener(java.io.Reader) and JSONTokener(java.io.InputStream) constructors have explicit notes about JSONTokener not closing the reader/stream, I’d like to have it close the reader/stream....
Opengraph URL: https://github.com/stleary/JSON-java/issues/718
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSONTokener should implement java.io.Closeable","articleBody":"While `JSONTokener(java.io.Reader)` and `JSONTokener(java.io.InputStream)` constructors have explicit notes about JSONTokener not closing the reader/stream, I’d like to have it close the reader/stream. Implementing `java.io.Closeable` isn’t backward-incompatible (if the library user doesn’t explicitly close it, nothing happens), and for those who use try-with-resources construct, having to keep a separate reference for the reader/stream is a pain. Although try-with-resources itself is Java 7+, the [`java.io.Closeable` interface](https://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html) is `@since 1.5`, so implementing the interface can be done without losing Java 6 compatibility.","author":{"url":"https://github.com/jtotht","@type":"Person","name":"jtotht"},"datePublished":"2023-01-28T13:15:27Z","url":"https://github.com/stleary/JSON-java/issues/718"}
| 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:97ce42d8-2f4e-2999-b39f-414ca00955f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C528:A1D0F:3F6AD3:576D41:6AFD1310 |
| html-safe-nonce | db83a6cf1beb4700c1f97f2e4b986f8d26782880f65f37f072ec447b12b55565 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTI4OkExRDBGOjNGNkFEMzo1NzZENDE6NkFGRDEzMTAiLCJ2aXNpdG9yX2lkIjoiMjA0ODUxNjYyNDMzMzU4NjA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 98ce4b3ec6088ec62f2b14bb0512e491c0dddca8a2dea19914af7c619d15c92b |
| hovercard-subject-tag | issue:1560853988 |
| 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/stleary/JSON-java/718/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da414ffc478d196643c4af50ee5915061931f870041a32adf0e6f58004142af2/stleary/JSON-java/issues/718 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da414ffc478d196643c4af50ee5915061931f870041a32adf0e6f58004142af2/stleary/JSON-java/issues/718 |
| og:image:alt | While JSONTokener(java.io.Reader) and JSONTokener(java.io.InputStream) constructors have explicit notes about JSONTokener not closing the reader/stream, I’d like to have it close the reader/stream.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jtotht |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| turbo-cache-control | no-preview |
| go-import | github.com/stleary/JSON-java git https://github.com/stleary/JSON-java.git |
| octolytics-dimension-user_id | 5107558 |
| octolytics-dimension-user_login | stleary |
| octolytics-dimension-repository_id | 1187853 |
| octolytics-dimension-repository_nwo | stleary/JSON-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1187853 |
| octolytics-dimension-repository_network_root_nwo | stleary/JSON-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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width