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
2. Defensive Programming
Page History
Versions Compared
Old Version
3
changes.mady.by.user
Carol J. Lallier
Saved on
Sep 29, 2014
compared with
New Version
4
changes.mady.by.user
Carol J. Lallier
Saved on
Sep 29, 2014
Previous Change: Difference between versions 2 and 3
Next Change: Difference between versions 4 and 5
View Page History
Key
This line was added.
This line was removed.
Formatting was changed.
...
Content by Label
showLabels
false
max
99
spaces
@self
sort
title
showSpace
false
labels
+2DefPro,-void
22. Minimize the scope of variables
23. Minimize the scope of the @SuppressWarnings annotation
24. Minimize the accessibility of classes and their members
25. Document thread-safety and use annotations where applicable
26. Always provide feedback about the resulting value of a method
27. Identify files using multiple file attributes
28. Do not attach significance to the ordinal associated with an enum
29. Be aware of numeric promotion behavior
30. Enable compile-time type checking of variable arity parameter types
31. Do not apply public final to constants whose value might change in later releases
32. Avoid cyclic dependencies between packages
33. Prefer user-defined exceptions over more general exception types
34. Try to gracefully recover from system errors
35. Carefully design interfaces before releasing them
36. Write garbage-collection-friendly code
Overview
Content Tools
{"serverDuration": 69, "requestCorrelationId": "c53b24ee48fcc83e"}