Sonar Community
java:S3655 false positive?
Rules and Languages
Report False-positive / False-negative...
sonarqube-cloud
,
java
,
false-positive
Colin
(Colin)
January 9, 2023, 10:58am
2
Hey there.
I believe a discussion of this rule (and this case) has taken place in this thread:
show post in topic
Related topics
Topic
Replies
Views
Activity
Optional value should only be accessed after calling isPresent()
Report False-positive / False-negative...
java
,
sonarqube
1
695
March 25, 2022
squid:S3655 (Optional#isPresent() before accessing the value)
Report False-positive / False-negative...
java
,
sonarqube
2
942
August 4, 2020
"Call "Optional#isPresent()" before accessing the value" false-positive with ternary operator
Report False-positive / False-negative...
java
2
1610
September 23, 2021
Ternary seems to trick up SonarQube's optional.isPresent() check
SonarQube Server / Community Build
java
,
false-positive
,
bug-no-category
3
1234
February 6, 2019
java:S3655 Call "Optional#isPresent()" before accessing the value
SonarQube Cloud
7
14276
October 25, 2022