The following instruction triggers the S864 rule:
field.setText(condition() ? name + " (JHS extended)"
: name);
Seen on SQ 6.7.3 with SonarJava 5.7
The following instruction triggers the S864 rule:
field.setText(condition() ? name + " (JHS extended)"
: name);
Seen on SQ 6.7.3 with SonarJava 5.7
This issue is expected. I’ve update rule description to mention that this rule covers ternary expression as well.