== Why is this an issue?

include::../description.adoc[]

=== Noncompliant code example

[source,java]
----
if (compare(myPoint.x, myPoint.x) != 0) { // Noncompliant 
  //... 
} 

if (compare(getNextValue(), getNextValue()) != 0) { // Noncompliant 
  // ... 
} 
----


=== Compliant solution

[source,java]
----
if (compare(myPoint.x, myPoint.y) != 0) { 
  //... 
} 

Object v1 = getNextValue(); 
Object v2 = getNextValue(); 
if (compare(v1, v2) != 0) { 
  // ... 
} 
----

ifdef::env-github,rspecator-view[]

'''
== Implementation Specification
(visible only on this page)

include::../message.adoc[]

include::../highlighting.adoc[]

endif::env-github,rspecator-view[]
