# FP java:S2259 Optional.map()

**URL:** <https://community.sonarsource.com/t/fp-java-s2259-optional-map/136261>\
**Category:** Report False-positive / False-negative...\
**Tags:** sonarqube, java\
**Created:** [March 5, 2025, 2:44am UTC](https://community.sonarsource.com/t/fp-java-s2259-optional-map/136261 "2025-03-05T02:44:39Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Dorian\_Burihabwa](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/dorian_burihabwa/32/18750_2.png) [@Dorian\_Burihabwa](https://community.sonarsource.com/u/Dorian_Burihabwa)\
**Post date:** [July 29, 2025, 11:26am UTC](https://community.sonarsource.com/t/fp-java-s2259-optional-map/136261/11 "2025-07-29T11:26:11Z")

</div>

Hi @Alain_Picard,

Thanks for reporting this issue but without the details of which product and version you are experiencing this issue with, we will have a hard time helping you.

I suggest you create a new thread referencing this one using the template to share which product you are using.

This is especially important because we recently [migrated our implementation of S2259 to a new engine](https://community.sonarsource.com/t/new-version-of-our-bug-detection-engine-for-java-and-python/143287) in some products and it would help to know if you are experiencing the same issue with the new implementation still.

Cheers,

Dorian

---

_[View the full topic](https://community.sonarsource.com/t/fp-java-s2259-optional-map/136261)._
