super.setRunningVersion(running); if (running) { savedValue = value; } else { savedValue = null; }
super.setRunningVersion(running); if (running) { savedValue = value; } else { savedValue = null; }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/MapProperty.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/property/CollectionProperty.java
Method name: void setRunningVersion(boolean) Method name: void setRunningVersion(boolean)
Number of AST nodes: 4 Number of AST nodes: 4
1
super.setRunningVersion(running);
1
super.setRunningVersion(running);
2
		if (running) {
2
		if (running) {
3
			savedValue = value;
3
			savedValue = value;
4
		} else {
4
		} else {
5
			savedValue = null;
5
			savedValue = null;
6
		}
6
		}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes having the same super class
Number of node comparisons10
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.setRunningVersion(running);
    1
    super.setRunningVersion(running);
    1
    super.setRunningVersion(running);
    Preondition Violations
    Super method call super.setRunningVersion(running); cannot be extracted from method
    Super method call super.setRunningVersion(running); cannot be extracted from method
    1
    super.setRunningVersion(running);
    2
    if (running)
    2
    if (running)
                                            
    3
    savedValue = value;
    Preondition Violations
    Unmatched statement savedValue=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    3
    savedValue = value;
    3
    savedValue = value;
    3
    savedValue = value;
    Preondition Violations
    Unmatched statement savedValue=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                            
    else
            
                                          
    4
    savedValue = null;
    Preondition Violations
    Unmatched statement savedValue=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4
    savedValue = null;
    4
    savedValue = null;
    4
    savedValue = null;
    Preondition Violations
    Unmatched statement savedValue=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                          
    Precondition Violations (6)
    Row Violation
    1Super method call super.setRunningVersion(running); cannot be extracted from method
    2Super method call super.setRunningVersion(running); cannot be extracted from method
    3Unmatched statement savedValue=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement savedValue=value; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Unmatched statement savedValue=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched statement savedValue=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted