• 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. 01. Declarations and Initialization (DCL)

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

  • Page:
    DCL50-J. Use visually distinct identifiers
  • Page:
    DCL51-J. Do not shadow or obscure identifiers in subscopes
  • Page:
    DCL52-J. Do not declare more than one variable per declaration
  • Page:
    DCL53-J. Minimize the scope of variables
  • Page:
    DCL54-J. Use meaningful symbolic constants to represent literal values in program logic
  • Page:
    DCL55-J. Properly encode relationships in constant definitions
  • Page:
    DCL56-J. Do not attach significance to the ordinal associated with an enum
  • Page:
    DCL57-J. Avoid ambiguous overloading of variable arity methods
  • Page:
    DCL58-J. Enable compile-time type checking of variable arity parameter types
  • Page:
    DCL59-J. Do not apply public final to constants whose value might change in later releases
  • Page:
    DCL60-J. Avoid cyclic dependencies between packages
  • Page:
    DCL61-J. Do not use raw types
 


  

  • recommendation-list
  • dcl
Overview
Content Tools
  • Powered by Atlassian Confluence 8.5.21
  • Printed by Atlassian Confluence 8.5.21
  • 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": 88, "requestCorrelationId": "f0f15ba08f57f162"}