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
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Pages
Old Categories
3. Reliability
Page History
Versions Compared
Old Version
1
changes.mady.by.user
Carol J. Lallier
Saved on
Sep 28, 2014
compared with
New Version
2
changes.mady.by.user
Carol J. Lallier
Saved on
Sep 28, 2014
Next Change: Difference between versions 2 and 3
View Page History
Key
This line was added.
This line was removed.
Formatting was changed.
...
Help reduce errors, and are consequently important for developing reliable Java code
Contain specific Java coding recommendations to improve software reliability
37. Do not shadow or obscure identifiers in subscopes
38. Do not declare more than one variable per declaration
39. Use meaningful symbolic constants to represent literal values in program logic
40. Properly encode relationships in constant definitions
41. Return an empty array or collection instead of a null value for methods that return an array or collection
42. Use exceptions only for exceptional conditions
43. Use a try-with-resources statement to safely handle closeable resources
44. Do not use assertions to verify the absence of runtime errors
45. Use the same type for the second and third operands in conditional expressions
46. Do not serialize direct handles to system resources
47. Prefer using iterators over enumerations
48. Do not use direct buffers for short-lived, infrequently used objects
49. Remove short-lived objects from long-lived container objects
Overview
Content Tools
{"serverDuration": 70, "requestCorrelationId": "90c9ab634ef7e7cc"}