Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT Oracle Coding Standard for Java
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT Oracle Coding Standard for Java
2 Rules
Rule 02. Expressions (EXP)
Page Information
Title:
Rule 02. Expressions (EXP)
Author:
Dhruv Mohindra
Jul 14, 2008
Last Changed by:
David Svoboda
Mar 15, 2022
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/GDdGBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT Oracle Coding Standard for Java (1)
Page:
EXP02-J. Do not use the Object.equals() method to compare two arrays
Hierarchy
Parent Page
Page:
2 Rules
Children (8)
Page:
EXP00-J. Do not ignore values returned by methods
Page:
EXP01-J. Do not use a null in a case where an object is required
Page:
EXP02-J. Do not use the Object.equals() method to compare two arrays
Page:
EXP03-J. Do not use the equality operators when comparing values of boxed primitives
Page:
EXP04-J. Do not pass arguments to certain Java Collections Framework methods that are a different type than the collection parameter type
Page:
EXP05-J. Do not follow a write by a subsequent write or read of the same object within an expression
Page:
EXP06-J. Expressions used in assertions must not produce side effects
Page:
EXP07-J. Prevent loss of useful data due to weak references
Labels
Global Labels (3)
rule-list
exp
section
Recent Changes
Time
Editor
Mar 15, 2022 09:46
David Svoboda
View Changes
Mar 11, 2020 12:55
David Svoboda
View Changes
Nov 21, 2018 14:11
Derek Leung
View Changes
Nov 20, 2018 14:34
Derek Leung
View Changes
Nov 20, 2018 13:50
Derek Leung
View Page History
Outgoing Links
External Links (3)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT Oracle Coding Standard for Java (1)
Home page:
SEI CERT Oracle Coding Standard for Java
Overview
Content Tools
{"serverDuration": 87, "requestCorrelationId": "0147937515f155db"}