this.connect(); this.buildDocument(); SOAPOPS = this.getOperations();
includeModel.addNewRow(); includeModel.fireTableDataChanged(); enableRestart();
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/protocol/http/proxy/gui/ProxyControlGui.java
Method name: void parse() Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.connect();
2
			this.buildDocument();
3
			SOAPOPS = this.getOperations
1
includeModel.addNewRow();
2
			includeModel.fireTableDataChanged();
4
();
3
			enableRestart();
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 comparisons9
  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 2
    Mapped Statements
    ID Statement ID Statement
    2
    this.connect();
    2
    this.connect();
    21
    enableRestart();
    Differences
    Expression1Expression2Difference
    connectenableRestartMETHOD_INVOCATION_NAME_MISMATCH
    thisMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression this.connect() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.connect() is a void method call, and thus it cannot be parameterized
    Expression enableRestart() is a void method call, and thus it cannot be parameterized
    Expression this.connect() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.connect() is a void method call, and thus it cannot be parameterized
    Expression enableRestart() is a void method call, and thus it cannot be parameterized
    21
    enableRestart();
    3
    this.buildDocument();
    3
    this.buildDocument();
    Preondition Violations
    Unmatched statement this.buildDocument(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                    
    4
    SOAPOPS = this.getOperations();
    4
    SOAPOPS = this.getOperations();
    Preondition Violations
    Unmatched statement SOAPOPS=this.getOperations(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                    
                                                              
    19
    includeModel.addNewRow();
    Preondition Violations
    Unmatched statement includeModel.addNewRow(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    19
    includeModel.addNewRow();
                                                                                    
    20
    includeModel.fireTableDataChanged();
    Precondition Violations (10)
    Row Violation
    1Expression this.connect() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression this.connect() is a void method call, and thus it cannot be parameterized
    3Expression enableRestart() is a void method call, and thus it cannot be parameterized
    4Expression this.connect() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression this.connect() is a void method call, and thus it cannot be parameterized
    6Expression enableRestart() is a void method call, and thus it cannot be parameterized
    7Unmatched statement this.buildDocument(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    8Unmatched statement SOAPOPS=this.getOperations(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    9Unmatched statement includeModel.addNewRow(); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    10The refactoring of the clones is infeasible, because classes org.apache.jmeter.protocol.http.util.WSDLHelper and org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui do not have a common superclass