National Institute of Standards and Technology
Package illustrating a test case

Test case 55954

Deprecated test case

This version contains mistakes, making it deprecated. Deprecated test cases should not be used for new work. However, They remain in the SARD as a reference to redo previous work.

Description

CWE: 597 Use of '==' instead of 'equals()' to test String equivalence
Sinks:
GoodSink: Correctly use .equals() to compare strings
BadSink : Use == operator instead of .equals() to compare strings
Flow Variant: 02 Control flow: if(true) and if(false)

Flaws

Test Suites

Documentation

Have any comments on this test case? Please, send us an email.