Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider Java v3.0 (sch jp)

Java defines equality operators == and != and relational operators such as <=,>=,>,<. When it comes to string object reference comparisons, these manifest as traps that an amateur programmer may unintentionally fall victim to.

...

Noncompliant Code Example

For == to return true for two string references, they must point to the same underlying object. This non-compliant noncompliant example declares two different string objects with the same values, however, they compare unequal since they constitute different object references.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

EXP03-J

low

unlikely

medium

P??

P2

L3 L??

Automated Detection

TODO

Related Vulnerabilities

...