this.connect(); this.buildDocument(); SOAPOPS = this.getOperations();
RegexExtractor cloned = (RegexExtractor) super.clone(); cloned.template = this.template; return cloned;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/util/WSDLHelper.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/RegexExtractor.java
Method name: void parse() Method name: Object clone()
Number of AST nodes: 3 Number of AST nodes: 3
1
this.connect();
2
			this.buildDocument();
3
			SOAPOPS = this.getOperations()
1
RegexExtractor cloned = (RegexExtractor) super.clone();
2
		cloned.template = this.template;
4
;
3
		return cloned;
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 comparisons6
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    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.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                                                                                  
    1
    RegexExtractor cloned = (RegexExtractor)super.clone();
    4
    SOAPOPS = this.getOperations();
    4
    SOAPOPS = this.getOperations();
    2
    cloned.template = this.template;
    Differences
    Expression1Expression2Difference
    SOAPOPScloned.templateTYPE_COMPATIBLE_REPLACEMENT
    this.getOperations()this.templateTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression SOAPOPS is a field being modified, and thus it cannot be parameterized
    2
    cloned.template = this.template;
                                      
    3
    return cloned;
    Preondition Violations
    Unmatched return cloned;
    3
    return cloned;
    Precondition Violations (2)
    Row Violation
    1Expression SOAPOPS is a field being modified, and thus it cannot be parameterized
    2Unmatched return cloned;