this(); this.target = target; configureProxy(port);
headerManager = new HeaderManager(); tableModel = new InnerTableModel(headerManager); init();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/Daemon.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/HeaderPanel.java
Method name: void Daemon(int, ProxyControl) Method name: void HeaderPanel()
Number of AST nodes: 3 Number of AST nodes: 3
1
this();
2
		this.target = target;
3
		configureProxy(port
1
headerManager = new HeaderManager();
2
		tableModel = new InnerTableModel(headerManager);
4
);
3
		init();
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 statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    this();
                        
    2
    this.target = target;
    2
    this.target = target;
    1
    headerManager = new HeaderManager();
    Differences
    Expression1Expression2Difference
    this.targetheaderManagerTYPE_COMPATIBLE_REPLACEMENT
    targetnew HeaderManager()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression this.target is a field being modified, and thus it cannot be parameterized
    Expression headerManager is a field being modified, and thus it cannot be parameterized
    1
    headerManager = new HeaderManager();
                                                                                                      
    2
    tableModel = new InnerTableModel(headerManager);
    Preondition Violations
    Unmatched statement tableModel=new InnerTableModel(headerManager); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2
    tableModel = new InnerTableModel(headerManager);
    3
    configureProxy(port);
    3
    configureProxy(port);
    3
    init();
    Differences
    Expression1Expression2Difference
    configureProxyinitMETHOD_INVOCATION_NAME_MISMATCH
    configureProxy(port)init()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression configureProxy(port) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression configureProxy(port) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    3
    init();
    Precondition Violations (7)
    Row Violation
    1Expression this.target is a field being modified, and thus it cannot be parameterized
    2Expression headerManager is a field being modified, and thus it cannot be parameterized
    3Unmatched statement tableModel=new InnerTableModel(headerManager); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    4Expression configureProxy(port) is a void method call, and thus it cannot be parameterized
    5Expression init() is a void method call, and thus it cannot be parameterized
    6Expression configureProxy(port) is a void method call, and thus it cannot be parameterized
    7Expression init() is a void method call, and thus it cannot be parameterized