fix(java): use correct Long literals in OAuth token supplier for Optional<Long> expires_in fields#12504
Merged
fern-support merged 6 commits intomainfrom Feb 18, 2026
Merged
Conversation
…onal<Long> expires_in fields - Refactor isLongType method to use PoetTypeNameMapper for robust type resolution - Add support for detecting Long types within Optional<T> parameterized types - Generate 3600L (long literal) instead of 3600 (int literal) for Optional<Long> fields - Simplify optional expires_in handling logic by removing redundant container checks - Remove unused PrimitiveTypeV1 import Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Updates versions.yml with changelog entry for Long literal fix in OAuth token suppliers. Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Contributor
🌱 Seed Test SelectorSelect languages to run seed tests for:
How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR. |
tstanmay13
approved these changes
Feb 18, 2026
…workflow - Add filter: tree:0 to checkout action to prevent authentication issues - This resolves the 'could not read Username for https://github.com' error - The combination of sparse-checkout with default blob filtering was causing Git to attempt fetching specific objects that required authentication
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
3600L) instead of int literals (3600) for Optional expires_in fields in OAuth token suppliersisLongTypemethod to usePoetTypeNameMapperfor robust type resolutionOptional<T>parameterized typesTest plan
3600LforOptional<Long>expires_in fields3600for other numeric types🤖 Generated with Claude Code