super(); mLabel.setText(pLabel); choiceList = new JComboBox(items); choiceList.setEditable(editable); init();
this.SERVERMAP.clear(); ROOTNODE.removeAllChildren(); SERVERTREE.updateUI(); GRAPH.clearData();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/gui/JLabeledChoice.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/MonitorPerformancePanel.java
Method name: void JLabeledChoice(String, String[], boolean) Method name: void clearData()
Number of AST nodes: 5 Number of AST nodes: 4
1
super();
2
		mLabel.setText(pLabel);
3
		choiceList = new JComboBox(items);
4
		choiceList.setEditable(editable);
5
		init
1
this.SERVERMAP.clear();
2
		ROOTNODE.removeAllChildren();
3
		SERVERTREE.updateUI();
6
();
4
		GRAPH.clearData();
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 comparisons20
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super();
                          
                                                                    
    2
    ROOTNODE.removeAllChildren();
    2
    mLabel.setText(pLabel);
    2
    mLabel.setText(pLabel);
    3
    SERVERTREE.updateUI();
    Differences
    Expression1Expression2Difference
    setTextupdateUIMETHOD_INVOCATION_NAME_MISMATCH
    mLabelSERVERTREEVARIABLE_NAME_MISMATCH
    javax.swing.JLabeljavax.swing.JTreeSUBCLASS_TYPE_MISMATCH
    mLabel.setText(pLabel)SERVERTREE.updateUI()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression mLabel.setText(pLabel) is a void method call, and thus it cannot be parameterized
    Expression SERVERTREE.updateUI() is a void method call, and thus it cannot be parameterized
    Expression mLabel.setText(pLabel) is a void method call, and thus it cannot be parameterized
    Expression SERVERTREE.updateUI() is a void method call, and thus it cannot be parameterized
    3
    SERVERTREE.updateUI();
    3
    choiceList = new JComboBox(items);
                                                                          
    4
    choiceList.setEditable(editable);
    4
    choiceList.setEditable(editable);
    4
    GRAPH.clearData();
    Differences
    Expression1Expression2Difference
    setEditableclearDataMETHOD_INVOCATION_NAME_MISMATCH
    choiceListGRAPHVARIABLE_NAME_MISMATCH
    javax.swing.JComboBoxorg.apache.jmeter.visualizers.MonitorGraphSUBCLASS_TYPE_MISMATCH
    choiceList.setEditable(editable)GRAPH.clearData()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression choiceList.setEditable(editable) is a void method call, and thus it cannot be parameterized
    Expression GRAPH.clearData() is a void method call, and thus it cannot be parameterized
    Expression choiceList.setEditable(editable) is a void method call, and thus it cannot be parameterized
    Expression GRAPH.clearData() is a void method call, and thus it cannot be parameterized
    4
    GRAPH.clearData();
    5
    init();
    5
    init();
    1
    this.SERVERMAP.clear();
    Differences
    Expression1Expression2Difference
    initclearMETHOD_INVOCATION_NAME_MISMATCH
    this.SERVERMAPMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression this.SERVERMAP.clear() is a void method call, and thus it cannot be parameterized
    Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method init
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression this.SERVERMAP.clear() is a void method call, and thus it cannot be parameterized
    1
    this.SERVERMAP.clear();
    Precondition Violations (14)
    Row Violation
    1Expression mLabel.setText(pLabel) is a void method call, and thus it cannot be parameterized
    2Expression SERVERTREE.updateUI() is a void method call, and thus it cannot be parameterized
    3Expression mLabel.setText(pLabel) is a void method call, and thus it cannot be parameterized
    4Expression SERVERTREE.updateUI() is a void method call, and thus it cannot be parameterized
    5Expression choiceList.setEditable(editable) is a void method call, and thus it cannot be parameterized
    6Expression GRAPH.clearData() is a void method call, and thus it cannot be parameterized
    7Expression choiceList.setEditable(editable) is a void method call, and thus it cannot be parameterized
    8Expression GRAPH.clearData() is a void method call, and thus it cannot be parameterized
    9Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression init() is a void method call, and thus it cannot be parameterized
    11Expression this.SERVERMAP.clear() is a void method call, and thus it cannot be parameterized
    12Expression init() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    13Expression init() is a void method call, and thus it cannot be parameterized
    14Expression this.SERVERMAP.clear() is a void method call, and thus it cannot be parameterized