rspec/rules/S2757/common/code-example.adoc

9 lines
175 B
Plaintext
Raw Normal View History

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