S864 false positive with a single ?: operator

java

(Philippe Couton) #1

The following instruction triggers the S864 rule:

field.setText(condition() ? name + " (JHS extended)"
                                      : name);

Seen on SQ 6.7.3 with SonarJava 5.7