16 lines
220 B
Plaintext
16 lines
220 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
== Noncompliant Code Example
|
||
|
|
||
|
----
|
||
|
if (!(a == 2)) { ... } // Noncompliant
|
||
|
val b = !(i < 10) // Noncompliant
|
||
|
----
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
if (a != 2) { ... }
|
||
|
val b = (i >= 10)
|
||
|
----
|