this.isStats = true; initModel(); init();
tableLabel = new JLabel(label); this.background = bkg; standalone = false; init();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MonitorHealthVisualizer.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/ArgumentsPanel.java
Method name: void MonitorHealthVisualizer() Method name: void ArgumentsPanel(String, Color)
Number of AST nodes: 3 Number of AST nodes: 4
1
this.isStats = true;
1
t
2
		initModel();
3
		
2
ableLabel = new JLabel(label);
3
        this.background = bkg;
4
        standalone = false;
4
init();
5
        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 having the same super class
Number of node comparisons9
  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 fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                                    
    1
    tableLabel = new JLabel(label);
                                                  
    2
    this.background = bkg;
    1
    this.isStats = true;
    1
    this.isStats = true;
    3
    standalone = false;
    Differences
    Expression1Expression2Difference
    this.isStatsstandaloneTYPE_COMPATIBLE_REPLACEMENT
    truefalseLITERAL_VALUE_MISMATCH
    Preondition Violations
    Expression this.isStats is a field being modified, and thus it cannot be parameterized
    Expression standalone is a field being modified, and thus it cannot be parameterized
    3
    standalone = false;
    2
    initModel();
    2
    initModel();
    4
    init();
    Differences
    Expression1Expression2Difference
    initModelinitMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression initModel() is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    4
    init();
    3
    init();
                        
    Precondition Violations (5)
    Row Violation
    1Expression this.isStats is a field being modified, and thus it cannot be parameterized
    2Expression standalone is a field being modified, and thus it cannot be parameterized
    3Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression initModel() is a void method call, and thus it cannot be parameterized
    5Expression init() is a void method call, and thus it cannot be parameterized