XPathAssertion el = new XPathAssertion(); modifyTestElement(el); return el;
CompoundVariable func = new CompoundVariable(); func.compiledComponents = (LinkedList) compiledComponents.clone(); func.rawParameters = rawParameters; return func;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/XPathAssertionGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/util/CompoundVariable.java
Method name: TestElement createTestElement() Method name: CompoundVariable getFunction()
Number of AST nodes: 3 Number of AST nodes: 4
1
XPathAssertion el = new XPathAssertion();
2
		modifyTestElement(el)
1
CompoundVariable func = new CompoundVariable();
2
		func.compiledComponents = (LinkedList) compiledComponents.clone();
3
;
3
		func.rawParameters = rawParameters;
4
		return el;
4
		return func;
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.0
Clones locationClones are in different classes
Number of node comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation