this.title = title; this.filetype = filetype; init();
this.label = label; this.index = index; init();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/FileListPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/RunningSample.java
Method name: void FileListPanel(String, String) Method name: void RunningSample(String, int)
Number of AST nodes: 3 Number of AST nodes: 3
1
this.title = title;
1
this.label = label;
2
		this.filetype = filetype;
2
		this.index = index;
3
		init();
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.title = title;
    1
    this.title = title;
    1
    this.label = label;
    Differences
    Expression1Expression2Difference
    titlelabelVARIABLE_NAME_MISMATCH
    titlelabelVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.title is a field being modified, and thus it cannot be parameterized
    Expression this.label is a field being modified, and thus it cannot be parameterized
    1
    this.label = label;
                                            
    2
    this.index = index;
    Preondition Violations
    Unmatched statement this.index=index; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    this.index = index;
    2
    this.filetype = filetype;
    2
    this.filetype = filetype;
    Preondition Violations
    Unmatched statement this.filetype=filetype; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                        
    3
    init();
    3
    init();
    Precondition Violations (5)
    Row Violation
    1Expression this.title is a field being modified, and thus it cannot be parameterized
    2Expression this.label is a field being modified, and thus it cannot be parameterized
    3Unmatched statement this.index=index; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    4Unmatched statement this.filetype=filetype; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5The refactoring of the clones is infeasible, because classes org.apache.jmeter.gui.util.FileListPanel and org.apache.jmeter.visualizers.RunningSample do not have a common superclass