Spot the identity-comparison pitfall: which warning is sound when two integers or strings should be compared by value?
Explanation
Object reuse and interning can vary by value and execution context, so equal integers or strings are not guaranteed to share identity. Apparent success in one run is therefore not a stable contract for value comparison.