Wasted Variable Definition
Definition:
A variable is defined and defined again before it is read.
Also Known As:
DD Data Flow Anomaly
Code Example:
function f ( in integer i , out integer j ) {
var integer k := 1 ;
k := i ;
j := k ;
}
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring