• 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
SEI CERT Oracle Coding Standard for Java
  • Pages
  • Boards

Space shortcuts

  • Dashboard
  • Secure Coding Home
  • Android
  • C
  • C++
  • Java
  • Perl

Page tree

Browse pages
    • Attachments (0)
    • Page History
    • Page Information
    • Resolved comments
    • View in Hierarchy
    • View Source
    • Export to PDF
    • Export to Word
  1. Pages
  2. SEI CERT Oracle Coding Standard for Java
  3. 3 Recommendations
  • Jira links

Rec. 05. Object Orientation (OBJ)

  • Created by Sandy Shrum, last modified by Will Snavely on Nov 16, 2017

  • Page:
    OBJ50-J. Never confuse the immutability of a reference with that of the referenced object
  • Page:
    OBJ51-J. Minimize the accessibility of classes and their members
  • Page:
    OBJ52-J. Write garbage-collection-friendly code
  • Page:
    OBJ53-J. Do not use direct buffers for short-lived, infrequently used objects
  • Page:
    OBJ54-J. Do not attempt to help the garbage collector by setting local reference variables to null
  • Page:
    OBJ55-J. Remove short-lived objects from long-lived container objects
  • Page:
    OBJ56-J. Provide sensitive mutable classes with unmodifiable wrappers
  • Page:
    OBJ57-J. Do not rely on methods that can be overridden by untrusted code
  • Page:
    OBJ58-J. Limit the extensibility of classes and methods with invariants


  

  • recommendation-list
  • obj
Overview
Content Tools
  • Powered by Atlassian Confluence 8.5.22
  • Printed by Atlassian Confluence 8.5.22
  • Report a bug
  • Atlassian News
Atlassian

Carnegie Mellon University
Software Engineering Institute
4500 Fifth Avenue
Pittsburgh, PA 15213-2612
412-268-5800

Contact Us
  • Office Locations|
  • Additional Sites Directory|
  • Legal|
  • Privacy Notice|
  • CMU Ethics Hotline|
  • www.sei.cmu.edu

©2023 Carnegie Mellon University

{"serverDuration": 75, "requestCorrelationId": "4114fa0c72e870d7"}