Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Ignoring method return values can lead to unexpected program behavior.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

EXP00-J

Medium

Probable

Medium

P8

L2

Automated Detection

Tool
Version
Checker
Description
Coverity7.5CHECKED_RETURNImplemented
Parasoft Jtest
Include Page
Parasoft_V
Parasoft_V
PB.USC.NASSIG
 

SonarQube
Java Plugin
Include Page
SonarQube
Java Plugin
_V
SonarQube
Java Plugin
_V

S2201

S899

 

Return values from functions without side effects should not be ignored

Return values should not be ignored when they contain the operation status code

Related Guidelines

Bibliography

...


...