False positive for rule java:S2755

We are using Enterprise Edition v2026.1 with Standard Experience.

In three places we have an issue for rule java:S2755 that seems to be false positive because the proposed solution is available in the next line (marked in green).

Isn’t it common to get a short reply on false positive reports? Just to know if it is already known, if it will be fixed, if we are just doing something wrong…

Hi,

This is queued for the language experts. Hopefully they’ll be along soon.

 
Ann

Thanks for the feedback :slightly_smiling_face:

Hey @Wiebke,

Sorry for the late reply. Indeed, this is a false positive and your should be free to mark it as such.

Looking at our test code, it seems that we do not cover the case where the feature is set on the factory using setFeature. Actually, the rule implementation has been falling behind for quite a while and needs to be updated with a few more signatures (see this ticket).

We will try and see if we can prioritize that work to reduce false positives like the one we are experiencing. But beware that our capacity to work on our symbolic execution plugin are limited at the moment.

Best,

Dorian