Skip to content

Conversation

@hannyu
Copy link
Contributor

@hannyu hannyu commented May 12, 2025

No description provided.

@cowtowncoder cowtowncoder added the 3.0 Issue planned for initial 3.0 release label May 12, 2025
@cowtowncoder cowtowncoder changed the title feat: Add "optional" variants -- shortValueOpt(), floatValueOpt(), asShortOpt(), asFloatOpt() Add "optional" variants -- shortValueOpt(), floatValueOpt(), asShortOpt(), asFloatOpt() May 12, 2025
public OptionalDouble doubleValueOpt() {
double d = _asDoubleValueUnchecked();
if (Double.isFinite(d)) {
return OptionalDouble.of(_value.doubleValue());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@cowtowncoder cowtowncoder merged commit 0d89834 into FasterXML:3.x May 12, 2025
6 checks passed
@cowtowncoder
Copy link
Member

Thank you @hannyu !

@JooHyukKim JooHyukKim added the 3.0-release-notes Issues relevant for 3.0 release notes. label May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0-release-notes Issues relevant for 3.0 release notes. 3.0 Issue planned for initial 3.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants