Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Marco KaufmannMarco KaufmannReporter
Angelo BuonoAngelo Buono(Deactivated)Components
Fix versions
Priority
Normal
Details
Details
Assignee
Marco Kaufmann
Marco KaufmannReporter
Angelo Buono
Angelo Buono(Deactivated)Components
Fix versions
Priority

Sentry
Sentry
Sentry
Created June 26, 2023 at 3:10 PM
Updated October 16, 2024 at 2:11 PM
Resolved April 22, 2024 at 10:08 AM
The
isntanceof
with a pattern matching variable causes false positives when used on raw types and there are cases in which it is valid.Examples
Not a False Positive:
in this case, the rule prevents runtime ClassCastException
Possibly a False Positive:
in this case, there is no runtime problem and the raw type usage can be valid
Notes:
We may want to treat the second code example as a False Positive
We may want to introduce a new rule to check cases like the first code example