CQE-9090: Initialization within a Static Code Block

 
Initialization within a Static Code Block
[an error occurred while processing this directive] Definition in a New Window Definition in a New Window
Quality Issue ID: 9090 Maturity: Preliminary
+ Description

Description Summary

A code block that has been declared static performs initialization of data.

Extended Description

This pattern identifies situations where a storable data element or member data element is initialized with a value in the Write action located in a block of code which is declared as static.

+ Relationships
NatureTypeIDNameView(s) this relationship pertains to
View
ChildOf
Ch
Characteristic
9169Performance
Default Graph (primary)9001
CanPrecede
Co
Consequence
9039Excessive Resource Expenditure
Default Graph (primary)9001

Related Taxonomy Entries

TaxonomyVersionRelated ID
ASCPEM1ASCPEM-PRF-1
+ References
"Automated Source Code Performance Efficiency Measure (ASCPEM)". ASCPEM-PRF-1. v1.0. Object Management Group (OMG). 2016-01-01. <http://www.omg.org/spec/ASCPEM/1.0>.
Page Last Updated or Reviewed: October 01, 2017