rspec/rules/S2757/common/code-example.adoc
Fred Tingaud 49e4aff3ec
Modify Rule S2757: LaYC =+
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
2023-06-15 19:30:44 +02:00

9 lines
175 B
Plaintext

[source,java]
----
int target = -5;
int num = 3;
target =- num; // Noncompliant: target = -3. Is that the intended behavior?
target =+ num; // Noncompliant: target = 3
----