Title: EXP00-J. Do not ignore values returned by methods  
Author: Dhruv Mohindra Aug 02, 2008
Last Changed by: David Svoboda Aug 06, 2025
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/xzdGBQ
Export As: Word · PDF  
Incoming Links
SEI CERT Oracle Coding Standard for Java (3)
    Page: FIO02-J. Detect and handle file-related errors
    Page: FIO10-J. Ensure the array is filled when using read() to fill an array
    Page: ERR52-J. Avoid in-band error indicators
SEI CERT Perl Coding Standard (1)
    Page: EXP32-PL. Do not ignore function return values
SEI CERT C Coding Standard (1)
    Page: EXP12-C. Do not ignore values returned by functions
Hierarchy
Parent Page
    Page: Rule 02. Expressions (EXP)
Outgoing Links
External Links (14)
    java.sun.com/javase/6/docs/api/java/lang/String.html#replac…
    mindprod.com/jgloss/gotchas.html
    https://rules.sonarsource.com/java/RSPEC-2201
    https://wiki.sei.cmu.edu/confluence/display/java/Rule+AA.+R…
    https://rules.sonarsource.com/java/RSPEC-899
    java.sun.com/javase/6/docs/api/java/io/File.html#delete()
    https://pvs-studio.com/en/docs/warnings/v6101/
    https://pvs-studio.com/en/docs/warnings/v6010/
    https://www.safaribooksonline.com/library/view/secure-codin…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    cwe.mitre.org/
    cwe.mitre.org/data/definitions/252.html
    https://wiki.sei.cmu.edu/confluence/display/java/PVS-Studio
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT Oracle Coding Standard for Java (14)     Page: PVS-Studio_V
    Home page: SEI CERT Oracle Coding Standard for Java
    Page: SonarQube
    Page: Coverity
    Page: Klocwork_V
    Page: Parasoft_V
    Page: SpotBugs
    Page: SpotBugs_V
    Page: CodeSonar_V
    Page: Parasoft
    Page: CodeSonar
    Page: Rule AA. References
    Page: Klocwork
    Page: SonarQube_V
SEI CERT C Coding Standard (2)     Home page: SEI CERT C Coding Standard
    Page: EXP12-C. Do not ignore values returned by functions
SEI CERT C++ Coding Standard (2)     Page: VOID EXP12-CPP. Do not ignore values returned by functions or methods
    Home page: SEI CERT C++ Coding Standard