• 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

Android
Android
  • 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. Android Secure Coding Standard
  3. 2 Rules
  • Jira links

Rule 08. Declarations and Initialization (DCL)

  • Created by Sandy Shrum on May 08, 2015

Contents

Android Only

Content by label

There is no content with the specified labels

C

  • Page:
    DCL30-C. Declare objects with appropriate storage durations
  • Page:
    DCL31-C. Declare identifiers before using them
  • Page:
    DCL36-C. Do not declare an identifier with conflicting linkage classifications
  • Page:
    DCL37-C. Do not declare or define a reserved identifier
  • Page:
    DCL39-C. Avoid information leakage when passing a structure across a trust boundary
  • Page:
    DCL40-C. Do not create incompatible declarations of the same function or object
  • Page:
    DCL41-C. Do not declare variables inside a switch statement before the first case label

C++

Content by label

There is no content with the specified labels

Java

  • Page:
    DCL00-J. Prevent class initialization cycles
  • Page:
    DCL01-J. Do not reuse public identifiers from the Java Standard Library
  • Page:
    DCL02-J. Do not modify the collection's elements during an enhanced for statement

  • rule-list
  • dcl
  • section
Overview
Content Tools
  • Powered by Atlassian Confluence 8.5.26
  • Printed by Atlassian Confluence 8.5.26
  • 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

©2025 Carnegie Mellon University

{"serverDuration": 100, "requestCorrelationId": "52b076894f087819"}