rspec/rules/S3949/rule.adoc

13 lines
206 B
Plaintext

include::description.adoc[]
=== Noncompliant code example
[source,text]
----
public int getTheNumber(int positiveInt) {
int num = Integer.MAX_VALUE;
return num + positiveInt; // Noncompliant
}
----