René's URL Explorer Experiment


Title: Deserialize integers as longs when using Gson by jamiesanson · Pull Request #623 · optimizely/java-sdk · GitHub

Open Graph Title: Deserialize integers as longs when using Gson by jamiesanson · Pull Request #623 · optimizely/java-sdk

X Title: Deserialize integers as longs when using Gson by jamiesanson · Pull Request #623 · optimizely/java-sdk

Description: Summary Deserialize integers as longs when using Gson. This allows users to then use the resultant Map in downstream serializers more easily. Note: This is a breaking change in the case where consumers were relying on the double output. It's more correct, so feels worth taking, but feel free to hold this PR until you plan to release a new major version! Issues Fixes #622

Open Graph Description: Summary Deserialize integers as longs when using Gson. This allows users to then use the resultant Map in downstream serializers more easily. Note: This is a breaking change in the case where consu...

X Description: Summary Deserialize integers as longs when using Gson. This allows users to then use the resultant Map in downstream serializers more easily. Note: This is a breaking change in the case where consu...

Opengraph URL: https://github.com/optimizely/java-sdk/pull/623

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:67a137c4-0ab4-e96a-9018-dd0e98221e09
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC87C:1525E:126A2DB:19CF7EF:6B0452D4
html-safe-nonce5b2c6470844d3a357da80109bbbe97ae5113d0db10dea97ee9be5f108fba3329
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODdDOjE1MjVFOjEyNkEyREI6MTlDRjdFRjo2QjA0NTJENCIsInZpc2l0b3JfaWQiOiI3NDI5MjY3OTkxODQzNTkwODY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac325ff9892e9f7d9d06d3773bec106a7a2f6d4104c87d16f50dddeb69516c55aa
hovercard-subject-tagpull_request:3635641623
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/optimizely/java-sdk/pull/623/files
twitter:imagehttps://avatars.githubusercontent.com/u/11938029?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/11938029?s=400&v=4
og:image:altSummary Deserialize integers as longs when using Gson. This allows users to then use the resultant Map in downstream serializers more easily. Note: This is a breaking change in the case where consu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/optimizely/java-sdk git https://github.com/optimizely/java-sdk.git
octolytics-dimension-user_id1274132
octolytics-dimension-user_loginoptimizely
octolytics-dimension-repository_id64257587
octolytics-dimension-repository_nwooptimizely/java-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id64257587
octolytics-dimension-repository_network_root_nwooptimizely/java-sdk
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee086f9b7e88322eb2b41885a6ad425b215737fa5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/optimizely/java-sdk/pull/623/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foptimizely%2Fjava-sdk%2Fpull%2F623%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foptimizely%2Fjava-sdk%2Fpull%2F623%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=optimizely%2Fjava-sdk
Reloadhttps://github.com/optimizely/java-sdk/pull/623/files
Reloadhttps://github.com/optimizely/java-sdk/pull/623/files
Reloadhttps://github.com/optimizely/java-sdk/pull/623/files
optimizelyhttps://github.com/optimizely
java-sdkhttps://github.com/optimizely/java-sdk
Codehttps://github.com/optimizely/java-sdk
Issues9 (9)https://github.com/optimizely/java-sdk/issues
Pull requests3 (3)https://github.com/optimizely/java-sdk/pulls
Actionshttps://github.com/optimizely/java-sdk/actions
Projectshttps://github.com/optimizely/java-sdk/projects
Security and qualityhttps://github.com/optimizely/java-sdk/security
Insightshttps://github.com/optimizely/java-sdk/insights
Sign up for GitHub https://github.com/signup?return_to=%2Foptimizely%2Fjava-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Foptimizely%2Fjava-sdk%2Fissues%2Fnew%2Fchoose
Jamie Sanson (jamiesanson)https://github.com/jamiesanson
optimizely:masterhttps://github.com/optimizely/java-sdk/tree/master
jamiesanson:js/gson-deserialize-integershttps://github.com/jamiesanson/java-sdk/tree/js/gson-deserialize-integers
Conversation 3 https://github.com/optimizely/java-sdk/pull/623
Commits 4 https://github.com/optimizely/java-sdk/pull/623/commits
Checks 30 https://github.com/optimizely/java-sdk/pull/623/checks
Files changed https://github.com/optimizely/java-sdk/pull/623/files
Please reload this pagehttps://github.com/optimizely/java-sdk/pull/623/files
Deserialize integers as longs when using Gson https://github.com/optimizely/java-sdk/pull/623/files#top
Show all changes 4 commits https://github.com/optimizely/java-sdk/pull/623/files
17372e1 Update testFromJson test check integer parsing jamiesanson May 6, 2026 https://github.com/optimizely/java-sdk/pull/623/commits/17372e1a422be7bcd117b9c4fe71f47c80f2d3b7
16d38ef Apply Gson's LONG_OR_DOUBLE ObjectToNumber policy jamiesanson May 6, 2026 https://github.com/optimizely/java-sdk/pull/623/commits/16d38ef69f48a0648e9babfe18897682f7ca9752
8e5ff5e Update OptimizelyJSONWithGsonParserTest to demonstrate Long parsing jamiesanson May 6, 2026 https://github.com/optimizely/java-sdk/pull/623/commits/8e5ff5e94e5dedd5095894ebf26bc63b48dd374a
1062edf Remove element-wise comparison in tests jamiesanson May 6, 2026 https://github.com/optimizely/java-sdk/pull/623/commits/1062edf32d6340f97c277cf60134a5ce1a96d00a
Clear filters https://github.com/optimizely/java-sdk/pull/623/files
Please reload this pagehttps://github.com/optimizely/java-sdk/pull/623/files
Please reload this pagehttps://github.com/optimizely/java-sdk/pull/623/files
GsonConfigParser.java https://github.com/optimizely/java-sdk/pull/623/files#diff-240d99734cd137f68e9a1b0644481ec2384ceec499e4887e2e71e664966cd439
GsonConfigParserTest.java https://github.com/optimizely/java-sdk/pull/623/files#diff-b5cef8792c51a6831fd00b07805feb526a8a500f137cb47a628ae6c3bdb440e3
OptimizelyJSONWithGsonParserTest.java https://github.com/optimizely/java-sdk/pull/623/files#diff-915f5bd475eeb648a76e10de786bbdc31d5f7efb2599f7f4534176bf336bda01
core-api/src/main/java/com/optimizely/ab/config/parser/GsonConfigParser.javahttps://github.com/optimizely/java-sdk/pull/623/files#diff-240d99734cd137f68e9a1b0644481ec2384ceec499e4887e2e71e664966cd439
View file https://github.com/optimizely/java-sdk/blob/1062edf32d6340f97c277cf60134a5ce1a96d00a/core-api/src/main/java/com/optimizely/ab/config/parser/GsonConfigParser.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/optimizely/java-sdk/pull/623/{{ revealButtonHref }}
https://github.com/optimizely/java-sdk/pull/623/files#diff-240d99734cd137f68e9a1b0644481ec2384ceec499e4887e2e71e664966cd439
https://github.com/optimizely/java-sdk/pull/623/files#diff-240d99734cd137f68e9a1b0644481ec2384ceec499e4887e2e71e664966cd439
https://github.com/optimizely/java-sdk/pull/623/files#diff-240d99734cd137f68e9a1b0644481ec2384ceec499e4887e2e71e664966cd439
core-api/src/test/java/com/optimizely/ab/config/parser/GsonConfigParserTest.javahttps://github.com/optimizely/java-sdk/pull/623/files#diff-b5cef8792c51a6831fd00b07805feb526a8a500f137cb47a628ae6c3bdb440e3
View file https://github.com/optimizely/java-sdk/blob/1062edf32d6340f97c277cf60134a5ce1a96d00a/core-api/src/test/java/com/optimizely/ab/config/parser/GsonConfigParserTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/optimizely/java-sdk/pull/623/{{ revealButtonHref }}
https://github.com/optimizely/java-sdk/pull/623/files#diff-b5cef8792c51a6831fd00b07805feb526a8a500f137cb47a628ae6c3bdb440e3
https://github.com/optimizely/java-sdk/pull/623/files#diff-b5cef8792c51a6831fd00b07805feb526a8a500f137cb47a628ae6c3bdb440e3
...-api/src/test/java/com/optimizely/ab/optimizelyjson/OptimizelyJSONWithGsonParserTest.javahttps://github.com/optimizely/java-sdk/pull/623/files#diff-915f5bd475eeb648a76e10de786bbdc31d5f7efb2599f7f4534176bf336bda01
View file https://github.com/optimizely/java-sdk/blob/1062edf32d6340f97c277cf60134a5ce1a96d00a/core-api/src/test/java/com/optimizely/ab/optimizelyjson/OptimizelyJSONWithGsonParserTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/optimizely/java-sdk/pull/623/{{ revealButtonHref }}
https://github.com/optimizely/java-sdk/pull/623/files#diff-915f5bd475eeb648a76e10de786bbdc31d5f7efb2599f7f4534176bf336bda01
https://github.com/optimizely/java-sdk/pull/623/files#diff-915f5bd475eeb648a76e10de786bbdc31d5f7efb2599f7f4534176bf336bda01
Please reload this pagehttps://github.com/optimizely/java-sdk/pull/623/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.