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

9 lines
183 B
Plaintext
Raw Normal View History

[source,apex]
----
Integer target = -5;
Integer num = 3;
target =- num; // Noncompliant: target = -3. Is that the expected behavior?
target =+ num; // Noncompliant: target = 3
----